OOP2

BookList.java

1
import javax.swing.JList.;
2
public class BookList {
3
4
	private List<Book> bookList;
5
6
	public BookList(List<Book> bookList) { 
7
		this.bookList = bookList;
8
9
	}
10
11
	private List<int> prices;
12
	public void setPrices(List<int> prices) {
13
		this.prices = prices;
14
	}
15
16
17
18
	private generateBookList() {
19
20
	public void setBookList(List<Book> bookList) {
21
		this.bookList = bookList;
22
	}
23
24
	public List<Book> getBookList() {	
25
		return bookList;
26
	}
27
28
}
29