改错
public class Square{
private double a;
private double b;
Square(double a,double b){
this.a = a;
this.b = b;
}
public double getA(){
return a;
}
public double getB(){
return b;
}
public double area(){
double s1=1/2(a*b);
return s1;
}
}