-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibraryTester.java
More file actions
29 lines (26 loc) · 816 Bytes
/
LibraryTester.java
File metadata and controls
29 lines (26 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
public class LibraryTester {
public static void main(String[] args){
BookShelf O=new BookShelf('O');
BookShelf T=new BookShelf('T');
System.out.println(O);
System.out.println(T);
Book b1=new Book("The Heart of the Betrayed","Crime");
Book b2=new Book("Our Hill of Stars","Fantasy");
Book b3=new Book("One of a Kind","Science Fiction");
Book b4=new Book("The Vision of Roses","Romance");
System.out.println(b1);
System.out.println(b2);
System.out.println(b3);
System.out.println(b4);
O.add(b1);
O.add(b2);
O.add(b3);
O.add(b4);
T.add(b1);
T.add(b2);
T.add(b3);
T.add(b4);
System.out.println(O);
System.out.println(T);
}
}