Buy me a coffee
Java
›
Map
›
putIfAbsent
putIfAbsent
Map
키가 없을 때만 값을 삽입합니다.
문법
map.putIfAbsent(key, value)