Skip to content

Instantly share code, notes, and snippets.

@Flature
Created June 29, 2019 14:58
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 Flature/96fe93fd708c7d61333a5091a51367aa to your computer and use it in GitHub Desktop.
Save Flature/96fe93fd708c7d61333a5091a51367aa to your computer and use it in GitHub Desktop.
fun main(args:Array<String>){
val map = hashMapOf("1" to "ThinkGround", 2 to "Flature", 3 to "thinkground.flature@gmail.com")
// 값(value) 추가
map[4] = "thinkground.org"
println(map)
map.remove(2)
println(map)
map["2"] = "Flature"
println(map)
map.replace("2", "Thinkg.Flature")
map.replace(2, "플래쳐")
println(map)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment