ref: 446a0255b4ba5e8ad88bd43fc5a5f911106f72f8
parent: fd5476ab0c29f10d063c9f829f0cb2c57692d38f
author: mkf <mkf@d510>
date: Mon May 29 17:51:02 EDT 2023
add a test case
--- a/Main.java
+++ b/Main.java
@@ -787,7 +787,7 @@
this.BookQuery.clear();
for(Book i : BookList.values())
{
- if(i.getStatus() == q)
+ if(i.getStatus() == q )
this.BookQuery.add(i);
}
if(this.BookQuery.size() == 0)
@@ -1150,6 +1150,11 @@
System.out.println("Logging out...");
Logout(adm);
return;
+ case 88:
+ NewBook("1", "java book", "jack c richard", 10, "a book about java and stuff");
+ NewBook("42", "C book", "dennis ritche", 18, "nightmares with pointers!");
+ NewBook("1453", "Fall of constantipole", "konstantinus", 5, "The city has fallen");
+ break;
/* quit */
case 99:
System.out.print("Quit> Are you sure? (y/N)> ");
@@ -1528,7 +1533,7 @@
return;
}
- System.out.println("Remove Admin> Are you sure? (y/N)> ");
+ System.out.print("Remove Admin> Are you sure? (y/N)> ");
if(!s.nextLine().equals("y"))
return;
@@ -1552,7 +1557,7 @@
return;
}
- System.out.println("Remove User> Are you sure? (y/N)> ");
+ System.out.print("Remove User> Are you sure? (y/N)> ");
if(!s.nextLine().equals("y"))
return;
@@ -1576,7 +1581,7 @@
return;
}
- System.out.println("Remove Book> Are you sure? (y/N)> ");
+ System.out.print("Remove Book> Are you sure? (y/N)> ");
if(!s.nextLine().equals("y"))
return;