摘要:
public class Main {public static void main(String[] args) {new Thread(new BoilThread()).start();new Thread(new WashThread()).start();}}public class Bo... 阅读全文
摘要:
public class Main {public static void main(String[] args) {new BoilThread().start();new WashThread().start();}}public class WashThread extends Thread{... 阅读全文
摘要:
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 阅读全文