mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 18:47:12 +00:00
add toString() to BookDTO
This commit is contained in:
1 parent
51bcee5d7d
commit
8881950e6d
1 file changed
+5
@@ -23,4 +23,9 @@ public class BookDTO {
|
||||
return price;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "BookDTO [title=" + title + ", price=" + price + "]";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user