Question: By using Java language Write a complete main method that does the following: 1. Takes 1 command line argument (a string) and determines if there
By using Java language
Write a complete main method that does the following: 1. Takes 1 command line argument (a string) and determines if there are more upper case or lower case letters in the string. (Hint: The Character wrapper class contains the boolean methods is UpperCase and is LowerCase) 2. If there is not at least one command line argument, throw an IllegalArgumentException with an appropriate message. For example, C:>java Questioni "This IS THE input String" There are more lower case letters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
