摘要: 方法1:用while循环和变量实现 方法2:用synchronized、wait、notifyAll实现 static int index = 1; public static void main(String[] args) throws InterruptedException { final 阅读全文
posted @ 2017-04-22 14:24 默默生长的蘑菇 阅读(1439) 评论(0) 推荐(0) 编辑