for (Enumeration e = getEquipment(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
for (Mounted m : getEquipment()){
    public boolean hasC3M() {        if (isShutDown() || isOffBoard()) return false;        for (Enumeration e = getEquipment(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            if (m.getType() instanceof WeaponType && m.getType().hasFlag(WeaponType.F_C3M)                    && !m.isDestroyed() && !m.isBreached()) {                // If this unit is configured as a company commander,                // and if this computer is the company master, then                // this unit does not have a lance master computer.                if ( this.C3MasterIs(this) &&                     this.C3CompanyMasterIndex == getEquipmentNum( m ) ) {                    return false;                }                return true;            }        }        return false;    }