Page 1 of 1

Write a java class ExceptionProgram to read continuous input values until an integer is received. [ do while - 2 marks

Posted: Sun May 15, 2022 10:01 am
by answerhappygod
Write a java class ExceptionProgram to read continuous input
values until an integer is received. [ do while - 2
marks]
Throws InputMismatchException when character is entered [ try
catch - 2 marks, exception object - 1 mark]