wenti.JPG (85.18 KB, 下载次数: 11)
运行结果
╭月牙湾湾╮ 发表于 2014-7-2 01:37
你自己定义的线程没有start吧
lvc 发表于 2014-7-2 01:57
Ticket t1 = new Ticket();
Ticket t2 = new Ticket();
new Thread (t1,"t1").start();
lvc 发表于 2014-7-2 01:57
Ticket t1 = new Ticket();
Ticket t2 = new Ticket();
new Thread (t1,"t1").start();
lvc 发表于 2014-7-2 01:57
Ticket t1 = new Ticket();
Ticket t2 = new Ticket();
new Thread (t1,"t1").start();
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |