摘要: class Computer{ int num=0; boolean flag=false; public synchronized void set(){ if(flag){ try{ super.wait(); }catch(InterruptedException e){ e.printSta 阅读全文