I\'m just beginning to write programs in Java. What does the following Java code mean?
public static void main(String[] args)
What
args contains the command-line arguments passed to the Java program upon invocation. For example, if I invoke the program like so:
args
$ java MyProg -f file.txt
Then args will be an array containing the strings "-f" and "file.txt".
"-f"
"file.txt"