Skip to content

Commit

Permalink
Merge pull request rage#166 from Rgada28/patch-3
Browse files Browse the repository at this point in the history
Fix typos in Part 6-1
  • Loading branch information
S4ndyk authored Jun 15, 2020
2 parents 5f0d027 + ab41c1b commit b71e095
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions data/part-6/1-objects-within-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -1656,13 +1656,13 @@ System.out.println(pisin.getNimi());

```java
Person matti = new Person("Matti");
matti.setPituus(180);
matti.setHeight(180);

Person juhana = new Person("Juhana");
juhana.setPituus(132);
juhana.setHeight(132);

Person awak = new Person("Awak");
awak.setPituus(194);
awak.setHeight(194);

AmusementParkRide hurjakuru = new AmusementParkRide("Hurjakuru", 140);

Expand All @@ -1674,9 +1674,9 @@ System.out.println(hurjakuru);
System.out.println(hurjakuru.averageHeightOfPeopleOnRide());

System.out.println();
System.out.println(hurjakuru.haeTallest().getName());
System.out.println(hurjakuru.getTallest().getName());
Person tallest = hurjakuru.getTallest();
System.out.println(pisin.getName());
System.out.println(tallest.getName());
```


Expand Down Expand Up @@ -1798,7 +1798,7 @@ System.out.println("Empty room? " + room.isEmpty());

System.out.println("");
for (Person person : room.getPersons()) {
System.out.println(Person);
System.out.println(person);
}
```

Expand Down Expand Up @@ -2293,7 +2293,7 @@ Seuraavassa on luokan käyttöesimerkki: -->

Add the following methods to the `Suitcase` class:

- a `printGoods` method, which prints all the items in the suitcase
- a `printItems` method, which prints all the items in the suitcase

- a `totalWeight` method, which returns the total weight of the items

Expand Down

0 comments on commit b71e095

Please sign in to comment.