Skip to content

Commit 5a9ceaa

Browse files
authored
Merge pull request rage#98 from kevin0110w/kevinsBranchwk8p4
correcting some minor issues in wk 8 part 4
2 parents f9d98b1 + 63bf530 commit 5a9ceaa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

data/part-8/4-grouping-data-using-hash-maps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public class TaskTracker {
166166
this.completedExercises = new HashMap<>();
167167
}
168168

169-
public void lisaa(String user, int exercise) {
169+
public void add(String user, int exercise) {
170170
// an empty list has to be added for a new user if one has not already been added
171171
this.completedExercises.putIfAbsent(user, new ArrayList<>());
172172

@@ -230,7 +230,7 @@ Ada: [3, 4, 3, 3]
230230

231231
<!-- Tehtävänäsi on toteuttaa luokka `UseanKaannoksenSanakirja`, johon voidaan lisätä yksi tai useampi käännös jokaiselle sanalle. Luokan tulee toteuttaa seuraavat metodit: -->
232232

233-
Your assignment is to create the class `DictionaryOfManyTranslations". In it can be stored one or more translations for each word. The class is to implement the following methods:
233+
Your assignment is to create the class `DictionaryOfManyTranslations`. In it can be stored one or more translations for each word. The class is to implement the following methods:
234234

235235
<!-- - `public void lisaa(String sana, String kaannos)` lisää käännöksen sanalle säilyttäen vanhat käännökset -->
236236

@@ -420,7 +420,7 @@ facility.add("g63", "pi");
420420

421421
facility.remove("f156", "rollerblades");
422422

423-
System.out.println(kellari.contents("f156"));
423+
System.out.println(facility.contents("f156"));
424424

425425
facility.remove("f156", "rollerblades");
426426

0 commit comments

Comments
 (0)