2021222324252627282930
int notAnswered = 0; for (Occupation k:Occupation.values()) { map.put(k,0); } for (Response r:responses) { Occupation k = r.getOccupation(); if (k==null) { notAnswered = notAnswered+1; } else { int v = map.get(k);