Computer Science, asked by manaswitapal2005, 8 months ago

Write a program to input a sentence from user and print the longest word of the sentence as well as print the number of characters found in the longest word. Sample input "India is my country." Sample output ​

Answers

Answered by anshikabajpai66
3

Answer:

write a program in Java to enter a string/ sentence and display the longest word and the length of the longest word present in the string. Sample intput: "Tata Football Academy will play against Mohan bagan". Sample output: the longest word : football. The length of the word :8.May 15, 2019

Similar questions