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