//                 Test program for the Point class

public class PointTest {
    public static void main(String args[]){
	
	//          Declare two points 

	Point first = new Point(2.0,4.0,6.0);
	Point second = new Point(-1.0,3.0,-5.0);
	
	//           Calcualte and pront out distance between them

	System.out.println("Distance between first and second is :" +
			   first.distance(second));

	//         Form a third, being the sum of the two.

	Point third = first.add(second);

	//          Print out its value using default toString()

	System.out.println("Addition gives point " + third);

	


    }
}

	
