KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > demo > data > OrderFactory


1 package demo.data;
2
3 public class OrderFactory
4 {
5     public Order createDummyOrder() {
6     Order anOrder = new Order (1);
7     anOrder.addItem(new Item("Mac", (float)10.0, 100));
8     anOrder.addItem(new Item("Plam", (float)20.0, 200));
9     anOrder.addItem(new Item("PC", (float)5.0, 300));
10     return anOrder;
11     }
12 }
13
Popular Tags