write a program to input a sentence and print it's longest word of the sentence
Answers
Answered by
4
Answer:
At first import the util pacakage for creating the object of the scanner class. Now create an object (sc) of Scanner class. Read the sentence using nextLine() method of Scanner class.
Thank you .
Similar questions