Intellij has a nice shortcut for creating a "main()" method.  In a Java class (pojo): **Type psvm, **then press tab.
    public static void main(String[] args) {
        
    }

A main method will be created.