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