Question: JAVA Program Prompts the user to enter a string and displays its length and its first character, read till white space is entered (EOF, or
JAVA Program
Prompts the user to enter a string and displays its length and its first character, read till white space is entered (EOF, or 'while java.util.Scanner.hasNext()' )
Example of how it should look like:
Enter String: String is length 2 first character i Enter String: String history length 7 first character h BUILD SUCCESSFUL (total time: 0 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
