Package edu.pdx.cs410J.lang
Class DivTwo
java.lang.Object
edu.pdx.cs410J.lang.DivTwo
This class demonstrates throwing exceptions. It reads two
double
s from the command line and divides the second
by the first. If the second is zero, an
IllegalArgumentException
is thrown.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DivTwo
public DivTwo()
-
-
Method Details
-
main
Reads twodouble
s from the command line and divides the first by the second.
-