火车站售票系统java
import java.awt.*; import java.awt.event.*; import java.util.Date; public class SimulateRailwayStation extends Frame implements ActionListener { protected static final int NUM_AGANTS = 10; protected static final int NUM_INITIAL_AGANTS = 6; protected static final int BUSINESS_DELAY = 6000; protected static final int MAX_TRAIN_NUM = 10; protected static final int MAX_NO_CUSTOMERS = 200; private Button addcus = new Button ("添加顾客"); private Button delcus = new Button ("顾客离开"); private Button addagent = new Button ("增加售票窗口"); private Button delagent = new Button ("关闭售票窗口"); protected static String[] train_num = {"南京——北京","南京——上海","南京——镇江", "南京——杭州","南京——四川","南京——无锡","南京——合肥", "南京——乌鲁木齐","南京——天津","南京——徐州"};
用户评论