Skip to content

Instantly share code, notes, and snippets.

@Urdzik
Created January 19, 2019 16:28
Show Gist options
  • Save Urdzik/523007826979a93e59082448661e2fee to your computer and use it in GitHub Desktop.
Save Urdzik/523007826979a93e59082448661e2fee to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
HashMap<String, Long> myHashMap = new HashMap<>();
myHashMap.put("terramare", 380432275389L);
myHashMap.put("Mont blanc", 380680558887L);
for(Map.Entry<String, Long> entry: myHashMap.entrySet())
System.out.println(entry.getKey() + " - " + entry.getValue());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment