Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Order {
- private ArrayList<OrderItem> items;
- Order() {
- items = new ArrayList<Item>();
- }
- public void addItem(Item item, int quantity) {
- items.add(new OrderItem(item, quantity));
- }
- }
Add Comment
Please, Sign In to add comment