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
Math,
14 hours ago
Math,
14 hours ago
Business Studies,
1 day ago
Math,
1 day ago
Math,
7 months ago