So i haven worked that much with HashMaps, but looking at the JavaDoc it should be something like
Hashmap<Integer><String> h;
int sum = 0;
for(int i: h.keySet()) {
sum += i;
}
double percentile = sum/h.size()
More Related Contents:
- How to put HashMap into different elements with same key
- Get ArrayList entry of a HashMap Entry [closed]
- Iterate through a HashMap [duplicate]
- Java Hashmap: How to get key from value?
- How to sort Map values by key in Java?
- HashMap get/put complexity
- How to sort a HashMap in Java [duplicate]
- Sorting HashMap by values [duplicate]
- Is a Java hashmap search really O(1)?
- What happens when a duplicate key is put into a HashMap?
- How to update a value, given a key in a hashmap?
- What is the significance of load factor in HashMap?
- How can I combine two HashMap objects containing the same types?
- Sorting hashmap based on keys
- Find and replace words/lines in a file
- How does Java order items in a HashMap or a HashTable?
- creating Hashmap from a JSON String
- Key existence check in HashMap
- What is the optimal capacity and load factor for a fixed-size HashMap?
- Using an instance of an object as a key in hashmap, and then access it with exactly new object? [duplicate]
- How to copy HashMap (not shallow copy) in Java
- HashMap and int as key
- Limiting the max size of a HashMap in Java
- Why does HashMap require that the initial capacity be a power of two?
- Java: how to convert HashMap to array
- Android – Get value from HashMap
- get string value from HashMap depending on key name
- JDK 8 – “The type java.util.Map$Entry cannot be resolved” [duplicate]
- Sorting the Map in descending order based on the value [duplicate]
- What is the Java equivalent of Objective-C’s NSDictionary?