0
How to sum hashmap like in my first comment
2 Réponses
+ 4
int sum = 0;
for (int a : map.values())
{
sum=sum+a;
}
System.out.println(sum);
0
map.put("A",3);
map.put("A",3);
map.put("A",3);
if i input A then input B
total : 6 how to code like this