private void loadItems() { Item a = new Boat("skepp", "1000", "detta = skepp"); reg.addItem(a); Item b = new Fish("fisk", "2000", "detta = fisk"); reg.addItem(b); Item c = new SparePart("reservdel", "3000", "detta = reservdel"); reg.addItem(c); }
private void loadCustomers() { Customer a = new Customer("aaa", "900724-1111", "A-Gatan", "0702-AAA"); reg.addCustomer(a); Order gg = new Order(a, "11111"); a.addOrder(gg); reg.addOrder(gg); Customer b = new Customer("bbb", "900724-2222", "B-Gatan", "0702-BBB"); reg.addCustomer(b); Customer c = new Customer("ccc", "900724-3333", "C-Gatan", "0702-CCC"); reg.addCustomer(c); }