-
Notifications
You must be signed in to change notification settings - Fork 0
/
Department.java
29 lines (22 loc) · 1.11 KB
/
Department.java
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
import java.util.*;
public class Department
{
protected List<Item> entries;
public Department(){
entries = new ArrayList<>();
Item football0 = new Item("FB100","World Cup Football", 149.99, "Original Telstar Football that was"+
" used in the 2018 FIFA World Cup", 10);
Item premfootball0 = new Item("FB101", "Premier League Football ", 99.99, " 2018/19 Premier League Football"+
" used in the league", 10);
Item gloves1 = new Item("FB102", "Football Gloves ", 49.99, " Football gloves used by best goalkeepers"+
" in the world", 10);
Item boots1 = new Item("FB103", "Football Boots ",199.99, "Best boots around town", 10);
entries.add(football0);
entries.add(premfootball0);
entries.add(boots1);
entries.add(gloves1);
}
public List<Item> getEntries(){
return entries;
}
}