Question: I need help. I do not even know where to begin with this. Write a program that prompts the user to enter three words on

I need help. I do not even know where to begin with this.

Write a program that prompts the user to enter three words on a single line (of the Java console). Once the program has read in each word separately, it should output a number of statistics about the words. Sample input/output is shown below; your output should look exactly the same (bold text is user input).

HINT: The user should input the three words in one entry (e.g., typing two words and hitting enter). You can call the scanners next() method twice (back-to-back) to save each word in its own variable.

Please enter three words (on a single line) and hit enter:

I love programming

The word 'I' is 1 character(s) long. The word 'love' is 4 character(s) long. The word 'programming' is 11 character(s) long.

The shortest word is 1 character(s) long.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!