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)

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) and ',' or '.' as symbol.
For example:
This is my book, that one is not. (valid)
This is my book! (Invalid)
My code can just recognize letters so if I input ", " or ". ", the program cannot recognize it.
How can I fix it?
JAVAIn this part of method I need to determine if the user

#/ 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

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!