Repository navigation
Expand file tree
/
Copy pathBooks.java
More file actions
58 lines (45 loc) · 2.07 KB
/
Copy pathBooks.java
File metadata and controls
58 lines (45 loc) · 2.07 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package bookdb;
import java.util.ArrayList;
import java.util.Arrays;
public class Books {
static ArrayList<Book> myBooks = new ArrayList<Book>(Arrays.asList(
new PhysicalBook ("Crime and Punishment",
"Fyodor Dostoevsky",
new ArrayList<String>(Arrays.asList("russian","historical", "fiction")),
452)
, new EBook ("Pride and Prejudice",
"Jane Austen",
new ArrayList<String>(Arrays.asList("historical","fiction","romance")),
"epub")
, new AudioBook ("Thus Spoke Zarathustra",
"Friedrich Nietzsche",
new ArrayList<String>(Arrays.asList("philosophy","german")),
"mp3",
192)
, new PhysicalGraphicNovel ("Logicomix",
"Christos Papadimitriou",
new ArrayList<String>(Arrays.asList("history","philosophy","math")),
352,
true)
, new DigitalGraphicNovel ("Sin City: Vol. 1",
"Frank Miller",
new ArrayList<String>(Arrays.asList("crime","thriller","fiction")),
208,
false,
"pdf")
, new DigitalGraphicNovel ("Sin City: Vol. 2",
"Frank Miller",
new ArrayList<String>(Arrays.asList("crime","thriller","fiction")),
216,
false,
"pdf")
, new EBook ("The Communist Manifesto",
"Karl Marx",
new ArrayList<String>(Arrays.asList("history","economics","philosophy")),
"epub")
, new PhysicalBook ("Frankenstein",
"Mary Shelley",
new ArrayList<String>(Arrays.asList("fantasy","horror","fiction")),
452))
);
}