编写一个程序,设计一个点类Point,实例化两个点之后,能调用其方法求两个点之间的距离。
Math.abs(Math.sqrt(Math.pow(a.getX() - b.getX(), 2) + Math.pow(a.getY() - b.getY(), 2)));