for (Enumeration e = this.getWeapons(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
for(Mounted m : getWeaponList()) {
    public boolean hasTAG() {        for (Enumeration e = this.getWeapons(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            WeaponType equip = (WeaponType)(m.getType());            if ((equip != null) && (equip.hasFlag(WeaponType.F_TAG))) {                return true;            }        }        return false;    }