电脑利用手机usb上网:这段代码哪错了?(java.)

来源:百度文库 编辑:高考问答 时间:2024/05/06 10:56:51
interface Interfacerectangle
{
int w=0;
int l=0;
}
class Suanrectangle implements Interfacerectangle
{
public int area(w,l)
{
this.w = w;
this.l = l;
return this.w*this.l;
}
}
class Student
{
public static void main(String [] args)
{
Suanrectangle s = new Suanrectangle();

System.out.println("这个长方形的面积为:"+s.area(5,7));

}
}

这哪错了- -`我看不出来.