Enumeration iter = bldg.getCoords();
Enumeration<Coords> iter = bldg.getCoords();
    protected void initializeAll() {        // Initialize all buildings.        buildings.removeAllElements();        if (bldgByCoords == null) {            bldgByCoords = new Hashtable();        } else {            bldgByCoords.clear();        }        // Walk through the hexes, creating buildings.        for (int y = 0; y < height; y++) {            for (int x = 0; x < width; x++) {                // Does this hex contain a building?                IHex curHex = getHex( x, y );                if (curHex != null                        && (curHex.containsTerrain(Terrains.BUILDING))) {                    // Yup, but is it a repeat?                    Coords coords = new Coords(x,y);                    if ( !bldgByCoords.containsKey(coords) ) {                        // Nope.  Try to create an object for the new building.                        try {                            Building bldg = new Building(coords, this, Terrains.BUILDING);                            buildings.addElement( bldg );                            // Each building will identify the hexes it covers.                            Enumeration iter = bldg.getCoords();                            while ( iter.hasMoreElements() ) {                                bldgByCoords.put( iter.nextElement(), bldg );                            }                        } catch (IllegalArgumentException excep) {                            // Log the error and remove the                            // building from the board.                            System.err.println( "Unable to create building." );                            excep.printStackTrace();                            curHex.removeTerrain(Terrains.BUILDING);                        }                    } // End building-is-new                } // End hex-has-building                if (curHex != null                        && (curHex.containsTerrain(Terrains.FUEL_TANK))) {                    // Yup, but is it a repeat?                    Coords coords = new Coords(x,y);                    if ( !bldgByCoords.containsKey(coords) ) {                        // Nope.  Try to create an object for the new building.                        try {                            int magnitude = curHex.getTerrain(Terrains.FUEL_TANK_MAGN).getLevel();                            FuelTank bldg = new FuelTank(coords, this, Terrains.FUEL_TANK, magnitude);                            buildings.addElement(bldg);                            // Each building will identify the hexes it covers.                            Enumeration iter = bldg.getCoords();                            while ( iter.hasMoreElements() ) {                                bldgByCoords.put( iter.nextElement(), bldg );                            }                        } catch (IllegalArgumentException excep) {                            // Log the error and remove the                            // building from the board.                            System.err.println( "Unable to create building." );                            excep.printStackTrace();                            curHex.removeTerrain(Terrains.BUILDING);                        }                    } // End building-is-new                } // End hex-has-building                if ( curHex != null && curHex.containsTerrain(Terrains.BRIDGE)) {                    // Yup, but is it a repeat?                    Coords coords = new Coords(x,y);                    if ( !bldgByCoords.containsKey(coords) ) {                        // Nope.  Try to create an object for the new building.                        try {                            Building bldg = new Building( coords, this, Terrains.BRIDGE );                            buildings.addElement( bldg );                            // Each building will identify the hexes it covers.                            Enumeration iter = bldg.getCoords();                            while ( iter.hasMoreElements() ) {                                bldgByCoords.put( iter.nextElement(), bldg );                            }                        }                        catch ( IllegalArgumentException excep ) {                            // Log the error and remove the                            // building from the board.                            System.err.println( "Unable to create bridge." );                            excep.printStackTrace();                            curHex.removeTerrain( Terrains.BRIDGE );                        }                    } // End bridge-is-new                } // End hex-has-bridge                                }        }        // Initialize all exits.        for (int y = 0; y < height; y++) {            for (int x = 0; x < width; x++) {                initializeHex(x, y);            }        }        // good time to ensure hex cache        IdealHex.ensureCacheSize(width + 1, height + 1);    } // End private void initializeAll()