X673: Distance

Given two Points a and b, return the distance between the two points. You should use the Math.sqrt to compute the square root.

Examples:

distance(new Point(5,10),new Point(10,10)) -> 5.0

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.