兩個線程交替打印 ABABABABAB

public class WaitNotifyThreadTest { public static Boolean flag = true; public static int i = 0; public static Object lock = new Object(); public static void main(String[] args) {
相關文章
相關標籤/搜索