blob: d5e29d155c4969594e855da119d93c63a7d77094 [file]
// "Replace with 'putIfAbsent' method call" "true"
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
Map<String, String> vals = new HashMap<>();
String v = vals.putIfAbsent("foo", "bar");
System.out.println(v);
}
}