+ 1
Command line arguments
what are command line arguments in java
2 Respuestas
+ 3
When you run a program from the command prompt, you can additionally supply arguments on the command line which can be later processed in the program.
normally you run java program as :
java prgname
if you want to pass command line arguments, you run the program as :
java prgname arg1 arg2 ...
these arguments are passed as strings and can be accessed in main program through String args [], which is passed as a parameter in main function.
+ 8
String [] args