OOP2

Main.java

1
import java.util.List;
2
import java.util.ArrayList;
3
/**
4
 * @author Maarten Vangeneugden - 1438256
5
 */
6
public class Main {
7
	public static void main(String[] args) {
8
		List<Article> articles = new ArrayList();
9
		articles.add(new Article(
10
					0,
11
					"Erik en het boek",
12
					null,
13
					ArticleType.BOOK,
14
					"roman",
15
					null
16
					));
17
		articles.add(new Article(
18
					1,
19
					"Oorlog en terpentijn",
20
					null,
21
					ArticleType.BOOK,
22
					"roman",
23
					null
24
					));
25
		//articles.append(new Article(
26
27
		List<Client> clients = new ArrayList();
28
		List<String> preferences = new ArrayList();
29
		preferences.add("misdaad");
30
		preferences.add("roman");
31
		preferences.add("pop");
32
		clients.add(new Client(
33
					0,
34
					"Jan Janssen",
35
					"janjanssen@test.be",
36
					null,
37
					"02-05-1965",
38
					"01-01-2014",
39
					null
40
					));
41
42
		Controller controller = new Controller(articles, clients);
43
	}
44
}
45