求大神看看这个错误在哪
public void Area() {
// TODO Auto-generated method stub
Scanner a = new Scanner(System.in);
int w = a.nextInt();
Scanner b = new Scanner(System.in);
int l = b.nextInt();
double area = w*l;
System.out.println(area);
}
@Override
public void Cir() {
// TODO Auto-generated method stub
Scanner a = new Scanner(System.in);
int w = a.nextInt();
Scanner b = new Scanner(System.in);
int l = b.nextInt();
int cir = 2*(w+l);
System.out.println(cir);
}
为什么一直显示public void Area() 和public void Cir()错误