123456789101112131415161718192021 |
- package J20250730.demo07_sellTicket;
- /**
- * @author WanJl
- * @version 1.0
- * @title SellTicketDemo
- * @description
- * @create 2025/7/30
- */
- public class SellTicketDemo {
- public static void main(String[] args) {
- SellTicket st=new SellTicket();
- Thread t1=new Thread(st,"窗口1");
- Thread t2=new Thread(st,"窗口2");
- Thread t3=new Thread(st,"窗口3");
- t1.start();
- t2.start();
- t3.start();
- }
- }
|