Question: Java Homework Q3 Part 1: Write the full method definition for a method called lengthLongestWord(). The method will have one input parameter: a String called
Java Homework

Q3 Part 1: Write the full method definition for a method called lengthLongestWord(). The method will have one input parameter: a String called phrase. This method returns back an int representing the length of the longest word in the String passed into it. Make sure your logic checks every word in the phrase, including the last! Q3 Part 2: Write the full method definition for a method called letterCounter(). The method will have two input parameters: a String called phrase, and a char called letter. The method will count the frequency of the passed in letter in the phrase, and will return back an int that represents the frequency of that letter in that phrase
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
