test.java
来自「航空定票系统:户端功能模块:用户登录模块」· Java 代码 · 共 23 行
JAVA
23 行
package com.tarena.abs.model;
import java.util.*;
import com.tarena.abs.model.comparator.ComparatorByDate;
public class Test {
public static void main(String[] args) {
PlaneModel p1=new PlaneModel(12000,2,"BOIN 747-300");
FlightSchedular fs=new FlightSchedular("CZ1202","上海","北京",
new MyDate(2007,1,1),new MyDate(2007,2,25),
new MyTime(12,30),new MyTime(14,5),1200,p1,0x54,1210);
/*FlightSchedular fs2=new FlightSchedular("CZ1203","北京","上海",
new MyDate(2007,1,1),new MyDate(2007,2,23),
new MyTime(9,30),new MyTime(11,25),1200,p1,0x7f,1210);
*/
//FlightSchedular.Flight f=fs.createNewFlight(new GregorianCalendar(2007,0,11),0.6);
//HashSet hs=fs.allFlightSet(new MyDate(2007,1,10),new MyDate(2007,2,18));
TreeSet ts=fs.allFightSorted(new ComparatorByDate());
for(Object o:ts){
System.out.println(o);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?