Question: Write a very simple solution to these questions in Java! Part 2.15 marks! 1. Tse Java's cxccption handling mechanism to edit the following code segment
Part 2.15 marks! 1. Tse Java's cxccption handling mechanism to edit the following code segment in a way that it doplays in mor metge dialogut their painides iheutrect input (for example, a TEXT WAT instead of USTRY Notes: Just add the exception handling. You do not need to add code to complete the class or the main method Exception that thrown in the CAC Numbetornat exception sint number Integer.parseInt(OptionPane.showiniputixiogt "enter carat integer:" ); int number2 Integer.parseInt(JOption Pane.show Input Dialogt inter second integer:" ); JOptionPane.showMessageDialogt this, "The sum in: ". nambert number2 Pavel (Joft-powe Swift Dinle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
