You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 860af32
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: source/ch3_javadatatypes.ptx
+13-24Lines changed: 13 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1080,57 +1080,46 @@ public class HistoMap {
1080
1080
Improve <xrefref="java-word-count"text="type-global"/> to remove the punctuation.
1081
1081
</p>
1082
1082
1083
-
<exerciselabel="java_map_parsons_example">
1083
+
<exerciselabel="java_map_parsons_example">
1084
1084
<statement>
1085
1085
<p>
1086
-
Rearrange and indent the blocks to create a Java method that accepts a dictionary (Map) of item prices and updates the price of a specific item.
1086
+
Rearrange and indent the blocks to create a general Java method that accepts a dictionary (Map) of item prices and updates the price of a specific item. If the item does not exist, do nothing.
1087
1087
</p>
1088
1088
</statement>
1089
1089
<blocks>
1090
1090
<blockorder="1">
1091
1091
<choicecorrect="yes">
1092
-
<codelanguage="java">
1093
-
public void updatePrice(Map<String, Double> catalog, String item, double newPrice) {
0 commit comments