-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestRun.java
53 lines (36 loc) · 1.15 KB
/
testRun.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
public class testRun
{
public static void main(String [] args)
{
String file = "binary.dat";
PropertyList list = new PropertyList();
// list.readFromFile(file);
// list.listAllRecords();
// ItemGui window = new ItemGui();
//
Item one = new Item("Automobile", "SL-350", "Mercedes", "1235",
1, 2008, 40000, "mercedes.jpg");
Item two = new Item("Camera", "ABC-200", "Nikon", "1236", 1, 2010, 300, "nikon.jpg");
Item three = new Item("Refrigerator", "Cool-One", "LG", "AB1234", 1, 2009, 1600,
"refrigerator.jpg");
Item four = new Item("Television", "Viao", "Sony", "GF89X", 1, 2010, 700,
"television.jpg");
list.addToDataBase(one);
list.addToDataBase(two);
list.addToDataBase(three);
list.addToDataBase(four);
list.writeToFile(file);
/* list.clearDataBase();
list.listAllRecords();
// list.openFile(file);
// list.addRecords();
// list.closeFile();
// list.printTextFile("List.txt");
// list.writeToFile(file);
// list.removeItem("Camera");
// System.out.println(list.getDataBaseSize());
// System.out.println(list.getTotalValue());
// list.searchByName("Camera");
// list.listAllRecords();*/
}
}