Java: Get hashmap value [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago . I've been looking over the internet but I cant seem to find this answer. I have a hashmap: public Map<String, Integer> killstreaks = new HashMap<String, Integer>(); Now I want to call the second value, the integer. SO by using the string as a reference, I know I can do this: killstreaks.get(//idk)