We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5de7e4 commit be4ee47Copy full SHA for be4ee47
src/main/java/bookkeeper/model/Book.java
@@ -101,7 +101,7 @@ public String toString() {
101
+ " Category: " + getCategory() + System.lineSeparator()
102
+ " Condition: " + getCondition() + System.lineSeparator()
103
+ " On Loan: " + isOnLoan() + System.lineSeparator()
104
- + " Location: " + getLocation() + System.lineSeparator()
+ + " Location: " + (isOnLoan() ? "Out on loan" : getLocation()) + System.lineSeparator()
105
+ " Note: " + (note.isEmpty() ? "No notes available" : getNote());
106
}
107
0 commit comments