Skip to content

Instantly share code, notes, and snippets.

@sajjadyousefnia
Created April 10, 2018 06:31
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 sajjadyousefnia/0b8351bfd3db2e303ffcc3252ed69bff to your computer and use it in GitHub Desktop.
Save sajjadyousefnia/0b8351bfd3db2e303ffcc3252ed69bff to your computer and use it in GitHub Desktop.
val personsHashMap: java.util.HashMap<Int, String> = hashMapOf(1 to "Chike", 2 to "John", 3 to "Emeka")
personsHashMap.put(4, "Chuka")
personsHashMap.remove(2)
print(personsHashMap[1]) // will print Chike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment