Within your main method, "args" references a String array holding any command line arguments that might be specified at runtime. These are entered after the class name when you run java from the command line. For example, if you type...
java MyProgram something else
...then within the main method of MyProgram, args will reference the String "something" and args will reference the String "else".
If you don't enter any command line arguments, then args will have a length of zero, and trying to reference the first element (args) will result in the OutOfBoundsException you're seeing. So to solve this problem, enter something as a command line argument when you run the program. [ January 26, 2007: Message edited by: marc weber ]
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org