Class DivTwo

java.lang.Object
edu.pdx.cs410J.lang.DivTwo

public class DivTwo extends Object
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 Details

  • Method Details

    • main

      public static void main(String[] args)
      Reads two doubles from the command line and divides the first by the second.