兩個線程交替打印100次AB

 Runnable接口代碼:ide public class AbThread implements Runnable { char[] content={'B','A'}; int count =1; @Override public void run() { synchronized (this){ try {
相關文章
相關標籤/搜索