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