i want the code to work to cover all the exceptions
:3
for example
Error handling:
If there is no argument after -add, print out an error message “Argument count mismatch”. If any argument after -add is not an integer, print out an error message “Argument type mismatch”.
but there is still problem of user input of strings where there should be integers
symptom: java.lang.ArrayIndexOutOfBoundsException: 2 at MyCLIParser.div(MyCLIParser.java:126) at MyCLIParser.main(MyCLIParser.java:21) For input string: "cat" (2 occurrences)
symptom: java.lang.NumberFormatException: For input string: "cat" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at MyCLIParser.div(MyCLIParser.java:126) at MyCLIParser.main(MyCLIParser.java:21)