a0ad31b5a8fc001d1745a9bad977883d

来自「java做的机票查询系统、 仅供初学者参考!」· 代码 · 共 47 行

TXT
47
字号
package Flight;

public class Bean {
	private String flightno="";
	private String lcavccity;
	private String destination;
	private int econum;
	private int num;
	public String getFlightno() {
		return flightno;
	}
	public void setFlightno(String flightno) {
		this.flightno += flightno;
	}
	public String getLcavccity() {
		return lcavccity;
	}
	public void setLcavccity(String lcavccity) {
		this.lcavccity = lcavccity;
	}
	public String getDestination() {
		return destination;
	}
	public void setDestination(String destination) {
		this.destination = destination;
	}
	public int getEconum() {
		return econum;
	}
	public void setEconum(int econum) {
		this.econum = econum;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public String toString() {
		String str="查询出"+num+"个航班\n";
		return str;
		
	}
	

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?