+ 1
Is it fine if I don't write args in the below program?
class myclass { public static void main(string[ ] args) { system.out.println("hello world"); } }
1 Respuesta
+ 1
As long as it's included as one of the parameters for main, then you're good. It doesn't need to be included within the function as it is mainly just a reference for the computer while running the program.