62,567
社区成员




public class Test {
static Thread laurel,hardy;
public static void main(String[] args) {
laurel=new Thread(){
public void run(){
try {
hardy.sleep(1000);
} catch (InterruptedException e) {
System.out.println("b");
}
System.out.println("c");
}
};
hardy=new Thread(){
public void run(){
System.out.println("d");
try {
laurel.wait();
} catch (InterruptedException e) {
System.out.println("e");
}
System.out.println("f");
}
};
laurel.start();
hardy.start();
}
}