i have a problem and i would like to knwo if some one can explain the directions in a simpler form because i have no idea what i am really supposed to do like how many classes i need if i need any and what should go in main. the problem as follows. i dont want any one to write the program i know the rules i just looking for direction.
1. Write a program that calls a method from main() which throws an exception of type ArithmeticException at a random iteration in a for loop. Catch the exception in the method, and pass the iteration count when the exception occurred to the calling method, main(), by using an object of an exception class you define yourself. Then, add finally block to the method to output the iteration count when the method exits.