class  CPU{ 
  int speed;
  CPU(int b)
{speed=b;}
void setSpeed(int m)
{ speed=m;}
  int getSpeed()
{ return speed;}
}

 class HardDisk{
  int amount;
HardDisk(int b)
{amount=b;}
void setAmount(int m)
{ amount=m;}
int getAmount()
{ return amount;}

}

 class PC
{ CPU cpu;
  HardDisk HD;
void setCPU(CPU c)
{ cpu=c;}
void setHardDisk(HardDisk h)
{ HD=h;}
void show()
{ System.out.printlin("cpu速 度:"+cpu.speed+"硬盘容 量:"+HD.amount);}

}  
  
  
public class Test{
public static void main(String args[])
  { CPU cpu=new CPU(2200);
    HardDisk disk=new HardDisk(200);
   PC pc=new PC();
   pc.setCPU(cpu);
   pc.setDisk(disk);
   pc.show();
  }
  }

运行不出来两个找不到符号,,是什么鬼