0
How to pass arguments
System.out.println("users:"+args【0】+","+args【1】); we have to pass arguments ?
1 ответ
+ 7
If you've compiled your .java files to .class using javac, you can then execute them on the command line using the java cmd.
java myClass argument1 argument2 etc
check: https://docs.oracle.com/javase/tutorial/essential/environment/cmdLineArgs.html