Initial commit

This commit is contained in:
xixu-me committed 2024-03-17 22:31:48 +08:00
commit 054b77ccdd
27 files changed
+1362

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
public class Test {
public static void main(String[] args) {
Administrator adm = new Administrator(1, "John");
adm.getLib().add(new Book("123", "Book1", 1));
adm.getLib().add(new Book("124", "Book2", 1));
adm.getLib().add(new Book("125", "Book3", 1));
Student st = new Student(1, "Alice");
st.getBg().add(new Book("123", "Book1", 1));
st.getBg().add(new Book("124", "Book2", 1));
st.getBg().add(new Book("125", "Book3", 1));
adm.register(st);
}
}