Guest User

Untitled

a guest
Jul 18th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. public class Order {
  2.     private ArrayList<OrderItem> items;
  3.  
  4.     Order() {
  5.         items = new ArrayList<Item>();
  6.     }
  7.  
  8.     public void addItem(Item item, int quantity) {
  9.         items.add(new OrderItem(item, quantity));
  10.     }
  11. }
Add Comment
Please, Sign In to add comment