Question: JAVA In this part of method I need to determine if the user input from command line arguments only contains Alphabetic(both upper and lower case)
#/ public class PhraseAnalyzer /** public static void main(String [] args) f if (isvalidPhrase(args)) \& // Phrases are valid \} public static boolean isValidphrase (String[] phrase) f for (String arg : phrase) 1 for (char c : arg.tocharArray()) f if (ICharacter. isLetter (c) ) return false; H/ if not letter 1 If for all char in array 1/1 for all elements in input array return true; 1 / public static string[] getWords (String[] phrase) f public static String getSmallestWords (String[] words) \& 1 public static string getLargestWords (String [] words) \{
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
