Question: Write a complete main method that does the following: 1. Takes 2 command line arguments (strings) and determines which string argument contains more digits. (Hint:

Write a complete main method that does the following: 1. Takes 2 command line arguments (strings) and determines which string argument contains more digits. (Hint: The Character wrapper class contains the boolean method is Digit) 2. if there are not at least two command line arguments, throw an IllegalArgumentException with an appropriate message. For example, C:>java Questionl "This 123 is the first" "The 456 second 789" The second string has more digits
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
