That is an error that occurs when you run the program. To find what the error is, find the exception class named NullPointerException in the java.lang API documentation. It says:
"NullPointerException extends RuntimeException
Thrown when an application attempts to use null in a case where an object is required. These include:
Calling the instance method of a null object.
Accessing or modifying the field of a null object.
Taking the length of null as if it were an array.
Accessing or modifying the slots of null as if it were an array.
Throwing null as if it were a Throwable value"
The rest of the error message tells you where the problems is happening - at line 25 of the main method in the program Flights.
Often caused by using an array index that is too large (trying to index beyond the end of the array). Bottom line, an object was expected, but a null was found.