Computer Science, asked by utsavgarg9210, 24 days ago

write a program to input a sentence and print it's longest word of the sentence​

Answers

Answered by sujitkundu2709
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