importjava.util.concurrent.locks.Lock;importjava.util.concurrent.locks.ReentrantLock;publicclassNumberPrintimplementsRunnable{privateintstate=0;privateLocklock=newReentrantLock();privatefinalintN=4;privateString[]chars={"A","B","C","D"};privateNumberPrint(){}@Overridepublicvoidrun(){for(inti=0;i
添加回答
举报
0/150
提交
取消