for (Enumeration e = this.getAmmo(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
for(Mounted m : getAmmo()) {
    public boolean hasHomingRounds() {        for (Enumeration e = this.getAmmo(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            AmmoType equip = (AmmoType)(m.getType());            if (equip.getMunitionType() == AmmoType.M_HOMING) {                return true;            }        }        return false;    }