📄 ticket.java~5~
字号:
package train.parameter;
import java.io.Serializable;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2006</p>
* <p>Company: 沈阳化工学院计算机</p>
* @author 彭胜勇 胡林
* @version 1.0
*/
public class Ticket implements Serializable {
String ticketNum;
String trainID;
String carrageID;
String seatID;
String soldStation;
String fromStation;
String arriveStation;
String centerStation;
String ticketType;
String beginTime;
String soldDate;
String price;
public Ticket
(
String ticketNum,
String trainID,
String carrageID,
String seatID,
String soldStation,
String fromStation,
String arriveStation,
String centerStation,
String ticketType,
String beginTime,
String soldDate,
String price) {
this.ticketNum=ticketNum;
this.trainID=trainID;
this.carrageID=carrageID;
this.seatID=seatID;
this.soldStation=soldStation;
this.fromStation=fromStation;
this.arriveStation=arriveStation;
this.centerStation=centerStation;
this.ticketType=ticketType;
this.beginTime=beginTime;
this.soldDate=soldDate;
this.price=price;
}
public String getTrainID(){
return this.trainID;
}
public String getCarrageID(){
return this.carrageID;
}
public String getSeatID(){
return this.seatID;
}
public String getSoldStation(){
return this.soldStation;
}
public String getFromStation(){
return this.fromStation;
}
public String getArriveStation(){
return this.arriveStation;
}
public String getCenterStation(){
return this.centerStation;
}
public String getTicketType(){
return this.ticketType;
}
public String getBeginTime(){
return this.beginTime;
}
public String getSoldDate(){
return this.soldDate;
}
public String getPrice(){
return this.price;
}
public String toString() {
return ticketNum + ":" + trainID+ ":" + carrageID+ ":" + seatID+ ":" + soldStation+ ":" + fromStation
+ ":" + arriveStation+ ":" + centerStation+ ":" + ticketType+ ":" + beginTime+ ":" + soldDate+ ":"
+ ":" + price;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -