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 String
Returns the name of an airport with a given three-letter code ornull
if no airport withcode
exists.Returns an unmodifiableMap
that maps airport codes to their names.static void
Prints 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 ornull
if no airport withcode
exists. -
getNamesMap
Returns an unmodifiableMap
that 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
-