105 down vote
In Java args contains the supplied command-line arguments as an array of String objects.
In other words, if you run your program as java MyProgram one two then args will contain ["one", "two"].
If you wanted to output the contents of args, you can just loop through them like this...