运行出错,找不到错误,错误
代码
package shiyanbaogao;
import java.security.spec.ECPoint;
public class bg {
private double x,y;
public void Point(double x,double y){
this.x=x;
this.y=y;
}
public double getDistance(ECPoint p){
return Math.sqrt((x-p.x)*(x-p.x)+(y-p.y)*(this.y-p.y));
}
}