Create checkFlights.java