for (Enumeration e = getEquipment(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
for (Mounted m : getEquipment()){
    public boolean hasC3S() {        if (isShutDown() || isOffBoard()) return false;        for (Enumeration e = getEquipment(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            if (m.getType() instanceof MiscType && m.getType().hasFlag(MiscType.F_C3S)                    && !m.isDestroyed() && !m.isBreached()) {                return true;            }        }        return false;    }