Code: Select all
public class ArgsPrinter{
public static void main(String args){
for(int i=0; i<3; i++){
System.out.println(args);
}}}
the compiler will throw an error as its not "string[] args"
but what if it is: "java ArgsPrinter 1"
would it compile or not?