[求助]帮忙看一看这个程序有什么错误!!
谢谢大家了!!
class Table{
int weight,wide,length,high,area;
char name;
Table(char x,int y,int z,int l,int m)
{name=x;
length=y;
wide=z;
high=l;
weight=m;
}
void area()
{area=length*wide;}
void display()
{
System.out.println("name is"+name);
System.out.println("length is"+length);
System.out.println("wide is"+wide);
System.out.println("high is"+high);
System.out.println("area is"+area);
System.out.println("weigth is"+weight);
}
void changeweight(int n)
{weight=n;}
public static void main(String args[]){
Table t;
t= new Table ( );
t.Table("s",12,13,14,15);
t.area();
t.display();
t.changeweight(16);
t.display();
}
}