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

Java Homework Q3 Part 1: Write the full method definition for a

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!