previous | start | next

Self Check

  1. Why does the InputTester class call in.next and not in.nextDouble?
  2. Would the DataSet class still compute the correct maximum if you simplified the update of the maximum field in the add method to the following statement?
    if (maximum < x) maximum = x;

previous | start | next