摘要: public class Main {public static void main(String[] args) {new Thread(new BoilThread()).start();new Thread(new WashThread()).start();}}public class Bo... 阅读全文
posted @ 2011-09-29 18:44 代码学习者coding 阅读(182) 评论(0) 推荐(0) 编辑
摘要: public class Main {public static void main(String[] args) {new BoilThread().start();new WashThread().start();}}public class WashThread extends Thread{... 阅读全文
posted @ 2011-09-29 18:41 代码学习者coding 阅读(132) 评论(0) 推荐(0) 编辑
摘要: public class Main {public static void main(String[] args) {new BoilThread().start();new WashThread().start();}}public class BoilThread extends Thread{@Overridepublic void run() {// TODO Auto-generated method stubtry {System.out.println("开始烧水。。。");Thread.sleep(10000);System.out.println(&quo 阅读全文
posted @ 2011-09-29 18:39 代码学习者coding 阅读(112) 评论(0) 推荐(0) 编辑