Question: Write a public static method named getWord that takes a String as a parameter and returns a String. The returned String is based on the
Write a public static method named getWord that takes a String as a parameter and returns a String. The returned String is based on the input String as follows: -If the input String has no characters, return "empty" -If the input String has less than 3 characters, return "short" -If the input String has 3 or more characters but less than 16, return "medium" -If the input String has greater than or equal to 16 characters, return "long" -If the input String contains any instances of the letter 'f', return "found f" regardless of the length of the input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
