0
Q:

how to sum the values of a hashmap

float sum = 0.0f;
for (float f : map.values()) {
    sum += f;
}
0

New to Communities?

Join the community