Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions data/part-6/1-objects-within-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ public class AmusementParkRide {
private String name;
private int minimumHeight;
private int visitors;
private ArrayList<Henkilo> riding;
private ArrayList<Person> riding;

// ..

Expand Down Expand Up @@ -1533,9 +1533,9 @@ public class Main {
public static void main(String[] args) {
Gift book = new Gift("Harry Potter and the Philosopher's Stone", 2);

Package package = new Package();
package.addGift(book);
System.out.println(package.totalWeight());
Package gifts = new Package();
gifts.addGift(book);
System.out.println(gifts.totalWeight());
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2202,7 +2202,7 @@ public class UserInterface {
continue;
}

this.register.addGradeBasedOnPoints(pisteet);
this.register.addGradeBasedOnPoints(points);
}
}

Expand Down