new Flight("Philadelphia", "Las Vegas", "Southwest", new GregorianCalendar(2007, 1, 12, 5, 0, 0),new GregorianCalendar(2007, 1, 12, 10, 0, 0))
new Flight("Trenton", "Blacksburg", "Trans-National Air", new GregorianCalendar(2007, 7, 11, 13, 30, 0), new GregorianCalendar(2007, 8, 11, 14, 30, 0)),
This is my Flight Object 1 & 2, there are many more inside an object array called flight. Recently I sorted the list be source city and departure time.
Now I'm trying to figure out how to sort an array of objects, by departure & arrival time.
This is all using the comparison method.
Could someone show me some code, sorting the two objects by departure & arrival time, or get me started I'm kinda stumped here.