Skip to content

Fix typo in Part 8-3 #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2020
Merged
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
6 changes: 3 additions & 3 deletions data/part-8/3-similarity-of-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public class Book {
return false;
}

// let's convert the object to a Book-olioksi
// let's convert the object to a Book-object
Book comparedBook = (Book) comparedObject;

// if the instance variables of the objects are the same, so are the objects
Expand Down Expand Up @@ -314,8 +314,8 @@ if (olioKirja.equals(toinenOlioKirja)) {
``` -->

```java
Kirja bookObject = new Kirja("Book Object", 2000, "...");
Kirja anotherBookObject = new Kirja("Book Object", 2000, "...");
Book bookObject = new Book("Book Object", 2000, "...");
Book anotherBookObject = new Book("Book Object", 2000, "...");

if (bookObject.equals(anotherBookObject)) {
System.out.println("The books are the same");
Expand Down