Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 8, 2020 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/85101699f50a1899b6b18fb0680382f6 to your computer and use it in GitHub Desktop.
Save parzibyte/85101699f50a1899b6b18fb0680382f6 to your computer and use it in GitHub Desktop.
hashMap.put("A", 1);
if (hashMap.containsKey("A")) {
System.out.printf("Contiene la clave A. Su valor es: %d\n", hashMap.get("A"));
}
if (hashMap.containsValue(0)) {
System.out.println("Contiene el valor 0");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment