Write a program that creates a simple calculator . The user enters two numbers in the text fields, Number 1 and Number 2. There are 4 buttons, labeled with “Add”, “Substract”, “Multiply” and “Divide”. When the user clicks any one buttons, the result of the operations to the two integers will be displayed in the Result text field. The program handles two kinds of exceptions.
•NumberFormatException if Number 1 or Number 2 were not an integer •ArithmeticException if Number2 were zero