java how to create main class code example Example: main class java public static void main(String[] args) {}