public static int getDistence(Point p1, Point p2) { double x1,y1; x1 = p2.x-p1.x; y1 = p2.y-p2.y; return Math.sqrt(x1*x1+y1*y1);//这句提示出错 }