How do you execute the application? You are trying to access first command line argument on line
but you didn't supply it, so that's why you are getting the exception.
posted 4 years ago
Well from what i understand writing Stringtest = args should allow me to assign the first input in the CMD to the args, for example. However, i can't even run the program due to the exception so i fail to see how i am supposed to input anything. (These are all code blocks from the "Head First" java book so they should work).