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,
12 days ago
Physics,
12 days ago
Business Studies,
24 days ago
Math,
24 days ago
Math,
8 months ago