Why did you put those two lines of code in your program?
If you don't want to look at the args from the commandline, don't use any of the elements of the String array that is passed to the main()...
Type: Posts; User: Norm
Why did you put those two lines of code in your program?
If you don't want to look at the args from the commandline, don't use any of the elements of the String array that is passed to the main()...
Yes. Instead of getting any user input from args passed in from the command line, use methods in a class to read the user's input from the console.
I assume that: StdIn.readInt(); is a method of...
Because the code uses the String array passed to the main() method. The args from the commandline are placed in that String array. If there are no args, the array will be empty.
On Windows: To...
Please copy the exact text of the error message and paste it here. Your made up verison is leaving out important parts of the message.
--- Update ---
Be sure to include the commandline that you...
You get that error when trying to access the first element in an empty array.
To put some elements in the args array, you need to put some arguments to on the commandline when the class is called:...