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
Computer Science,
5 months ago
Math,
5 months ago
Physics,
5 months ago
Social Sciences,
10 months ago
Math,
10 months ago
Physics,
1 year ago
Math,
1 year ago
History,
1 year ago