I have been asked the following question to solve can anyone help!!
Assuming that a sentence consists of a sequence of words separated by single spaces and terminated by a full stop, write and implement a Java program that will read in a sentence from the keyboard and will print out each word on a separate line together with the number of letters in each word. For example:
INPUT Mary had a little lamb.
OUTPUT - Mary 4 had 3 a 1 little 6 lamb 4
Could someone write out this entire program in java?