edu.pdx.cs399J
Class AirportNames

java.lang.Object
  extended by edu.pdx.cs399J.AirportNames

public class AirportNames
extends Object

This class is used to get the name of airport from its three-letter code.


Method Summary
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.
static Map getNamesMap()
          Returns an unmodifiable Map that maps airport codes to their names.
static void main(String[] args)
          Quick test program
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 getNamesMap()
Returns an unmodifiable Map that maps airport codes to their names.

Since:
Fall 2004

main

public static void main(String[] args)
Quick test program



Copyright © 2000-2009 Portland State University. All Rights Reserved.