|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.AirportNames
public class AirportNames
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 |
|---|
public static String getName(String code)
null if no airport with code exists.
public static Map getNamesMap()
Map that maps airport codes
to their names.
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||