previous
|
start
|
next
Example of Command Line Arguments
Java MyProgram -d file.txt
class MyProgram { public static void main(String[] args) { ... } }
args[0]
"-d"
args[1]
"file.txt"
previous
|
start
|
next