We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c05438 commit 39fdb31Copy full SHA for 39fdb31
1 file changed
Aggregation/Main.java
@@ -0,0 +1,17 @@
1
+public class Main {
2
+ public static void main(String[] args){
3
+
4
+ Book book1 = new Book("Harry Potter", 592);
5
+ Book book2 = new Book("Percy Jackson", 467);
6
+ Book book3 = new Book("Lord of the Rings", 501);
7
8
+ Book[] books = {book1, book2, book3};
9
+ Library library = new Library("NYC Public Library", 1992, books);
10
11
+ // for(Book book : books) {
12
+ // System.out.println(book.displayInfo());
13
+ // }
14
15
+ library.displayInfo();
16
+ }
17
+}
0 commit comments