Question 1. 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 Input : TATA FOOTBALL ACADEMY WILL PLAY AGAINST MOHAN BAGAN Sample Output : The longest word = FOOTBALL The length of the word = 8 Question 2. Write a program to accept a word (say BLUEJ) and display the following pattern : J E E U U U L L L L B B B B B
Answers
Answered by
0
Answer:
rushers,tkhmrgskeuwtwcfeffceekeje
Similar questions
Math,
4 months ago
Math,
4 months ago
Computer Science,
4 months ago
Social Sciences,
8 months ago
Math,
8 months ago
Physics,
11 months ago
Math,
11 months ago
History,
11 months ago