for (Enumeration e = tank.getWeapons(); e.hasMoreElements(); ) { Mounted m = (Mounted) e.nextElement();
for (Mounted m : tank.getWeaponList()) {
    public float getTankPowerAmplifier()    {        if (!engine.isFusion())        {            int weight = 0;            for (Enumeration e = tank.getWeapons(); e.hasMoreElements(); )            {                   Mounted m = (Mounted) e.nextElement();                WeaponType wt = (WeaponType) m.getType();                if (wt.hasFlag(WeaponType.F_LASER) ||                        wt.hasFlag(WeaponType.F_PPC))                    weight += wt.getTonnage(tank);            }            return ceil(weight / 10f, getWeightCeilingPowerAmp());        }        return 0f;    }