Use System.out.println("Your message") to print debugging messages about your input string and the value of every variable. First, ensure that the string is received from the scanner. After, look in the code of the stack.
GDICommander 54 Posting Whiz in Training
GDICommander 54 Posting Whiz in Training
GDICommander 54 Posting Whiz in Training