querystationcommand.java
来自「一个可以实现联网售票的火车售票管理系统」· Java 代码 · 共 48 行
JAVA
48 行
package train.command;import train.parameter.*;import java.util.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: 沈阳化工学院计算机</p> * @author 彭胜勇 胡林 * @version 1.0 */public class QueryStationCommand extends Command { String station; String staIndex; List stationList; public QueryStationCommand(String staIndex) { this.staIndex = staIndex; } public void execute() { try { stationList = this.model.queryTrainWiID(staIndex); } catch (Exception e) { System.out.println("Exception queryUser fail!" + e.getMessage()); } } public List getStationList() { return stationList; } public void setStation(String station) { this.station = station; } public String getStation() { return this.getStation(); } public String toString() { return station; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?