import java.io.*;class Table{
  private String name;
  private double weight;
  private double width;
  private double longth;
  private double high;
  
  public Table(String name,double weight,double width,double longth,double high){
    this.name = name;
    this.weight = weight;
    this.width = width;
    this.longth = longth;
    this.high = high;
  }
  
  public double Area(){
    return width*longth;
  }
  
  
  public void ChangeWeight(double weight ){
     this.weight = weight;
  }  
  
  public String toString(){
    return "名字:"+name+"\n"+"重量:"+weight+"\n"+"宽度:"+width+"\n"+"长度:"+longth+"\n"+"高度:"+high;
  }
  
}  public class TestTime{
public static void main(String[] args){
   int index = 0;
 String[] t1 = new String[3];
   t1[index] = new Table();
   
   System.out.print("请输入桌子的数据:");
   while(index < t1.length){
    System.out.println("第"+(index+1)+"张桌子的各种数值为!");
  try{
   BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
   String line = input.readLine();
   t1[] = Integer.valueOf(line).stringValue();
   t1[index] = Double.valueOf(line).doubleValue();
   for(int index = 0; index <t1.length; index++){
    System.out.println("第"+(index+1)+"张桌子"+t1[index]);
    System.out.println("第"+(index+1)+"张桌面面积:"+t1[index].Area()); 
  
    
    System.out.print("请输入桌子的新重量:");
  
   BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
   String W = in.readLine();
   double CW = Double.valueOf(W).doubleValue();
   t1[index].ChangeWeight(CW);    
  }catch(IOException e){
    System.out.println("输入错误!");
   
  }
   
   index = index +1;
 
  }
}