Please note: For those using the scanner to get input from the keyboard, you have to use the method:
scannerName.nextLine( ); to input multiple words from the keyboard. scannerName.next( ); will only read in a single word string. This extra method was added to the previous code sample in the prior post. Comments are closed.
|
Archives
May 2020
Categories |