⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.java

📁 航空定票系统:户端功能模块:用户登录模块
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -