Question: 4. [15 marks] (Find Longest Word.java) Write a recursive method that returns the longest word in a given sentence. Assume that the words are separated
![4. [15 marks] (Find Longest Word.java) Write a recursive method that](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f32b0d194a6_30066f32b0ca8a60.jpg)
4. [15 marks] (Find Longest Word.java) Write a recursive method that returns the longest word in a given sentence. Assume that the words are separated by single spaces and there is no spaces at the beginning or at the end. In the main method, make up a sentence, call the recursive method, and display the longest word
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
