Skip to content

Fix surface area output & book search syntax in Part 8 examples #469

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion data/part-5/1-learning-object-oriented-programming.md
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ System.out.println(first.surfaceArea());
(40, 80)
(10, 10)
(39, 80)
3920
3120

</sample-output>

Expand Down
4 changes: 2 additions & 2 deletions data/part-8/2-hash-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ books.add(prideAndPrejudice);
// searching for a book named Sense and Sensibility
Book match = null;
for (Book book: books) {
if (book.getName().equals("Sense and Sensibility") {
if (book.getName().equals("Sense and Sensibility")) {
match = book;
break;
}
Expand Down Expand Up @@ -713,7 +713,7 @@ public class Library {
}

public void addBook(Book book) {
String name = book.getName()
String name = book.getName();
if (name == null) {
name = "";
}
Expand Down