Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package SortedLinkedList;
- public class TakeOff implements Comparable<TakeOff>{
- String airport;
- String flight;
- String date;
- String time;
- String number;
- String anotherdate;
- String anothertime;
- public TakeOff (String a, String b, String c)
- {
- number = a;
- date = b;
- time = c;
- }
- public String getflightnumber()
- {
- return number;
- }
- public void setflightnumber(String numberflight)
- {
- number = numberflight;
- }
- public String getflightdate()
- {
- return date;
- }
- public void setflightdate(String dateofflight)
- {
- date = dateofflight;
- }
- public String getflighttime()
- {
- return time;
- }
- public void setflighttime(String timeofflight)
- {
- time = timeofflight;
- }
- public TakeOff (String d, String e, String f, String g)
- {
- airport = d;
- anotherdate = e;
- anothertime = f;
- flight = g;
- }
- public String getplace()
- {
- return airport;
- }
- public void setplace(String location)
- {
- airport = location;
- }
- public String getseconddate()
- {
- return anotherdate;
- }
- public void setseconddate(String datetwo)
- {
- anotherdate = datetwo;
- }
- public String getsecondtime()
- {
- return anothertime;
- }
- public void setsecondtime(String timetwo)
- {
- anothertime = timetwo;
- }
- public String gettheflight()
- {
- return flight;
- }
- public void settheflight(String liftoff)
- {
- flight = liftoff;
- }
- public int compareTo(TakeOff other){
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement