Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.39 KB | None | 0 0
  1. package SortedLinkedList;
  2.  
  3. public class TakeOff implements Comparable<TakeOff>{
  4.  
  5.     String airport;
  6.     String flight;
  7.     String date;
  8.     String time;
  9.     String number;
  10.     String anotherdate;
  11.     String anothertime;
  12.    
  13. public TakeOff (String a, String b, String c)
  14. {
  15.     number = a;
  16.     date = b;
  17.     time = c;
  18. }
  19. public String getflightnumber()
  20. {
  21.     return number;
  22. }
  23.  
  24. public void setflightnumber(String numberflight)
  25. {
  26.     number = numberflight;
  27. }
  28.  
  29. public String getflightdate()
  30. {
  31.     return date;
  32. }
  33.  
  34. public void setflightdate(String dateofflight)
  35. {
  36.     date = dateofflight;
  37. }
  38.  
  39. public String getflighttime()
  40. {
  41.     return time;
  42. }
  43.  
  44. public void setflighttime(String timeofflight)
  45. {
  46.     time = timeofflight;
  47. }
  48.  
  49. public TakeOff (String d, String e, String f, String g)
  50. {
  51.     airport = d;
  52.     anotherdate = e;
  53.     anothertime = f;
  54.     flight = g;
  55. }
  56.  
  57. public String getplace()
  58. {
  59.     return airport;
  60. }
  61.  
  62. public void setplace(String location)
  63. {
  64.     airport = location;
  65. }
  66.  
  67. public String getseconddate()
  68. {
  69.     return anotherdate;
  70. }
  71.  
  72. public void setseconddate(String datetwo)
  73. {
  74.     anotherdate = datetwo;
  75. }
  76.  
  77. public String getsecondtime()
  78. {
  79.     return anothertime;
  80. }
  81.  
  82. public void setsecondtime(String timetwo)
  83. {
  84.     anothertime = timetwo;
  85. }
  86.  
  87. public String gettheflight()
  88. {
  89.     return flight;
  90. }
  91.  
  92. public void settheflight(String liftoff)
  93. {
  94.     flight = liftoff;
  95. }
  96.  
  97. public int compareTo(TakeOff other){
  98.     return 0;
  99. }
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement