September 2002
Intermediate to advanced
608 pages
14h 20m
English
// Division.java package nfl.original; /** This class provides numeric constants for the NFL * divisions, and strings for each division name. */ public class Division { public static final int AFC_EAST = 0; public static final int AFC_CENTRAL = 1; public static final int AFC_WEST = 2; public static final int NFC_EAST = 3; public static final int NFC_CENTRAL = 4; public static final int NFC_WEST = 5; /** Return the name associated with a numeric constant. */ public static String getName(int i) { if (i == AFC_EAST) return "AFC East"; else if (i == AFC_CENTRAL) return "AFC Central"; else if (i == AFC_WEST) return "AFC West"; else if (i == NFC_EAST) return "NFC East"; else if (i == NFC_CENTRAL) return "NFC Central"; else ...Read now
Unlock full access