Guest User

Untitled

a guest
Jun 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public int countItem(Item purchase)
  2. {
  3. int quantity = 0;
  4. if(cart.indexOf(purchase) == -1)
  5. quantity = 0;
  6. else
  7. quantity = get(cart.indexOf(purchase)).getQuantity();
  8.  
  9. return quantity;
  10. }
Add Comment
Please, Sign In to add comment