diff --git a/java-collections-maps-2/src/main/java/com/baeldung/map/PrimitiveMaps.java b/java-collections-maps-2/src/main/java/com/baeldung/map/PrimitiveMaps.java index c13aa19424..10245ce6e0 100644 --- a/java-collections-maps-2/src/main/java/com/baeldung/map/PrimitiveMaps.java +++ b/java-collections-maps-2/src/main/java/com/baeldung/map/PrimitiveMaps.java @@ -59,8 +59,8 @@ public class PrimitiveMaps { TDoubleIntMap doubleIntMap = new TDoubleIntHashMap(doubles, ints); - doubleIntMap.adjustValue(1.2, 1); - doubleIntMap.adjustValue(4.5, 4); - doubleIntMap.adjustValue(0.3, 0); + doubleIntMap.put(1.2, 1); + doubleIntMap.put(4.5, 4); + doubleIntMap.put(0.3, 0); } }