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