Question: Write a java program: Write a complete main method that does the following: 1. Takes 2 command line arguments, both integers. 2. If there are
Write a java program: Write a complete main method that does the following: 1. Takes 2 command line arguments, both integers. 2. If there are not 2 arguments, throw an IllegalArgumentException with an appropriate message. 3. Otherwise, output, to the console, the sum and product of those numbers, each on a different line. For example, C:>java Question2 12 5
12 + 5 = 17
12 * 5 = 60
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
