for (Enumeration e = getEquipment(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
for (Mounted m : getEquipment()){
    public boolean hasArmedMASC() {        for (Enumeration e = getEquipment(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            if (!m.isDestroyed() && !m.isBreached() && m.getType() instanceof MiscType &&                m.getType().hasFlag(MiscType.F_MASC)                && m.curMode().equals("Armed")) {                return true;            }        }        return false;    }