Package edu.pdx.cs410J
Class AirportNames
java.lang.Object
edu.pdx.cs410J.AirportNames
This class is used to get the name of airport from its three-letter
code.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the name of an airport with a given three-letter code ornullif no airport withcodeexists.Returns an unmodifiableMapthat maps airport codes to their names.static voidPrints the names of the airports with the given codes to standard out
-
Method Details
-
getName
Returns the name of an airport with a given three-letter code ornullif no airport withcodeexists. -
getNamesMap
Returns an unmodifiableMapthat maps airport codes to their names.- Returns:
- a map of airport codes to their names
- Since:
- Fall 2004
-
main
Prints the names of the airports with the given codes to standard out- Parameters:
args- Airport codes
-