for (int i = 0; i < equipmentList.size(); i++) { Mounted m = (Mounted)(equipmentList.elementAt(i));
for (Mounted m : equipmentList){
    public int getNumberOf(EquipmentType etype) {        int total = 0;        for (int i = 0; i < equipmentList.size(); i++) {            Mounted m = (Mounted)(equipmentList.elementAt(i));            if (m.getType().equals(etype))                total++;        }        return total;    }