Mounted weap;  for (Enumeration en = e.getAmmo(); en.hasMoreElements(); ) { weap = (Mounted)en.nextElement();
for (Mounted weap : e.getWeaponList()) {
    private static String formatAmmo(Entity e)    {        StringBuffer sb = new StringBuffer(1024);        Mounted weap;        for (Enumeration en = e.getAmmo(); en.hasMoreElements(); )            {                weap = (Mounted)en.nextElement();                sb.append(weap.getName());                sb.append(": ")                    .append(weap.getShotsLeft())                    .append( CommonConstants.NL );            }        return sb.toString();    }