Question: ASAP -CPS 2231 Lab 9 Assignment ( Exception Handling) 1. InputMismatchException) Write a program that prompts the user to enter two integers and displays their
-CPS 2231 Lab 9 Assignment ( Exception Handling) 1. InputMismatchException) Write a program that prompts the user to enter two integers and displays their sum. If one of the input data type is not integer, your program will display message "Exception: Input data type mismatch". Notel: Your program requires to use try-catch statement to handle the InputMismatchException. Note2: Your program does not need to prompt the user to enter the numbers again if the input data types are incorrect. In other words, your program does not need a loop statement to keep asking user to enter correct data. PS: You need to follow the rules below to submit all your program and lab assignments except UNIX assignment. (1) The filename/classname should be xxxxx Lab9.java (xxxx is your Kean email ID) (2) Java class should be created under default package. (B) Only one file can be submitted. If you have more than one java class, you need to put all java classes under one file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
