java main calling main code example
Example 1: java main
public class Jacob {
public static void main(String[] args) {
//code here
}
}
Example 2: java argument main
public class ArgumentExample {
public static void main(String[] args) {
for(int i = 0; i < args.length; i++) {
System.out.println(args[i]);
}
}
}