You are on page 1of 1

class TestPoint {

static public void main(String args[]) {


Point p1 = new Point(2,3);
Point p2 = new Point(4,6);
// p1.setX(12);
// int x=p1.getX();

// System.out.println(x);
System.out.println("la distance entre le point p1 et p2 est
"+p1.distance(p1,p2));
}

You might also like