01: /**
02:    This program computes square roots of selected input values.
03: */
04: public class RootApproximatorHarness1
05: {  
06:    public static void main(String[] args)
07:    {  
08:       double[] testInputs = { 100, 4, 2, 1, 0.25, 0.01 };
09:       for (double x : testInputs)
10:       {  
11:          RootApproximator r = new RootApproximator(x);
12:          double y = r.getRoot();
13:          System.out.println("square root of " + x
14:                + " = " + y);
15:       }
16:    }
17: }