You can pass command-line arguments to a program's main method when you run the program.
To specify program arguments:
If the argument includes a space, enclose it in quotation marks (for example, "arg 1").
![]() |
You can also specify arguments on the Execution tab of the file's property sheet. |
See also | |
---|---|
Passing Arguments to the Java Virtual Machine
Setting Runtime Options for the Environment |