Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 697881a

Browse files
committedJan 16, 2025
New commit
1 parent 93ec82a commit 697881a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎BookManager.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public String getIsbn() {
2323
return isbn;
2424
}
2525

26-
@Override
2726
public String toString() {
2827
return "Book [Title: " + title + ", Author: " + author + ", ISBN: " + isbn + "]";
2928
}
@@ -38,7 +37,7 @@ public static void main(String[] args) {
3837
while (true) {
3938
String choice = JOptionPane.showInputDialog(menu);
4039
switch (choice) {
41-
case "1": // Add Book
40+
case "1": //To Add Books
4241
if (bookCount >= books.length) {
4342
JOptionPane.showMessageDialog(null, "Library is full! Cannot add more books.");
4443
break;
@@ -50,7 +49,7 @@ public static void main(String[] args) {
5049
JOptionPane.showMessageDialog(null, "Book added successfully!");
5150
break;
5251

53-
case "2": // Remove Book
52+
case "2": //To Remove Book
5453
String isbnToRemove = JOptionPane.showInputDialog("Enter ISBN of the Book to Remove:");
5554
boolean found = false;
5655
for (int i = 0; i < bookCount; i++) {
@@ -67,7 +66,7 @@ public static void main(String[] args) {
6766
}
6867
break;
6968

70-
case "3": // View All Books
69+
case "3": // To View All Books
7170
String allBooks = "Books in Library:\n";
7271
boolean hasBooks = false;
7372
for (int i = 0; i < bookCount; i++) {

‎lombok.jar

1.96 MB
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.