A quick and easy way, when debugging code, to see what is in the args[] array is to print out the Arrays.toString(args) value. It will show you the contents of args.
it is defined as a Scanner above in the try catch block
The variable is defined inside of {} and is not known/is out of scope outside of the {}.
Move the variable definition outside of the {} so it is a inside of same set of {} as any code wanting to use it.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656