posted 22 years ago
Hello,
I failed a question on my final exam last night because I did not know how to create and use my own exception. The mission was to create a class that extends exception, then have another class use that exception. The basic problem I had to deal with was add 2 numbers, if they were greater than 100 use my exception to explain that the two numbers were greater than 100, else print that all is good. It was a simple console app, and I have been fighting it all morning and still cannot do it.
I have the following 2 classes
package finalexam;
}
Thanks for any assistance
Scott
[This message has been edited by Cindy Glass (edited December 14, 2001).]