Class AirportNames

java.lang.Object
edu.pdx.cs410J.AirportNames

public class AirportNames extends Object
This class is used to get the name of airport from its three-letter code.
  • Method Details

    • getName

      public static String getName(String code)
      Returns the name of an airport with a given three-letter code or null if no airport with code exists.
    • getNamesMap

      public static Map<String,String> getNamesMap()
      Returns an unmodifiable Map that maps airport codes to their names.
      Returns:
      a map of airport codes to their names
      Since:
      Fall 2004
    • main

      public static void main(String[] args)
      Prints the names of the airports with the given codes to standard out
      Parameters:
      args - Airport codes