具体的哲学家问题的代码实现 publicclasskuai {Stringname; booleanEnable=true; publickuai(Stringname) {this.name=name;} publicsynchronizedvoidpickup() {try{while(Enable==false) {this.wait();} this.Enable=false; }catch(Exceptione){} }