Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ff0ac67

Browse files
fixed toString in Book.java
1 parent 949ed14 commit ff0ac67

File tree

1 file changed

+9
-8
lines changed
  • src/main/java/com/example/randombook/book

1 file changed

+9
-8
lines changed

‎src/main/java/com/example/randombook/book/Book.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public class Book {
1414
private final int category;
1515
private final String images;
1616

17-
1817
public Book(int id, String title, String author, Date releaseDate, String isbn, int category, String images) {
1918
this.id = id;
2019
this.title = title;
@@ -56,13 +55,15 @@ public String getImages() {
5655
@Override
5756
public String toString() {
5857
return "Book{" +
59-
"id=" + getId() +
60-
", title='" + getTitle() + "'" +
61-
", author='" + getAuthor() + "'" +
62-
", releaseDate='" + getReleaseDate().toString() + "'" +
63-
", isbn='" + getIsbn() + "'" +
64-
", category='" + getCategory() + "'" +
65-
", images='" + getImages() + "'" +
58+
"id=" + id +
59+
", title='" + title + '\'' +
60+
", author='" + author + '\'' +
61+
", releaseDate=" + releaseDate +
62+
", isbn='" + isbn + '\'' +
63+
", category=" + category +
64+
", images='" + images + '\'' +
6665
'}';
6766
}
67+
68+
6869
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /