Command-line arguments are a common way to parameterize execution of programs. For example, java MyProgram arg1 arg2 uses arg1 and arg2 as arguments to the MyProgram class.
To experiment with command-line arguments it’s best to compile the Java file first.
Next we’ll look at more advanced command-line processing with flags.