Dear Java Programmer:
//This iexception throws non-negative value
class MyOwnNegativeValueEnteredException extends ArithmeticException {
public MyOwnNegativeValueEnteredException(){
ArithmeticException();
}//constructor
}//
The instructions say MyOwnNegativeValueEnteredException is an extention of
ArithmeticException. Is the above code correct. Or do I have to add the
following:
private void ArithmeticException() {
throw new UnsupportedOperationException("Not yet implemented");
}
I am trying to call the ArithmeticException and make it output a string such as
"Non-negative value."
I just can't grab ArithmeticException in a custom way.
Respects,
JKid314159
http://existentialists.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---