X1156: Catch Exception

The method divideValues() will throw an IllegalArgumentException if either parameter is 5. The method below takes two integer values as parameters and calls divideValues() in a try block. Complete the missing part of the catch clause.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.