Skip to content

Commit 39fdb31

Browse files
committed
Fifth Recorded Day
1 parent 8c05438 commit 39fdb31

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Aggregation/Main.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)