Question: 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

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 isLowerCase) 2. If there is not at least one command line argument, throw an IllegalArgumentException with an appropriate message. For example, C:>java Question1 "This IS THE input String" There are more lower case letters. public class Questionl { public static void main (String args[]) {
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
