Question: please explain this catch - why do we put input.next line in one but not the other? what does it do? - what is the
} catch (IndexOutOfBoundsException ex) { System.err.println("Level [" + level + ") has 5 courses." + "You cannot add more courses to this level.."); } catch (InputMismatchException ex) { System.err.println("Input Mismatch Exception"); input.nextLine(): } catch (Exception ex) 1 System.err.println(ex.getMessage(): input.nextLine()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
