1. Add a method to the class OurMath, as given, that performs integer division and throws a DivisionByZeroException, as described.
2. Add statements to the driver given to test the method you defined for the previous exercise.
3. Design and create a class UserData whose methods provide a client with valid integers and valid real numbers. Use Scanner to read input data from a user. Handle the possible exceptions to guarantee the validity of the data, have the user replace any invalid data, and finally return the validated data to the client.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here