Write a Point class with x and y, and a distanceTo method taking another Point and returning the straight-line distance between them. Use Math.sqrt.
class Point { Point(int x, int y); double distanceTo(Point other); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.