Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public double buy() {
- double total = 0;
- for (Product product: products) {
- total += product.price;
- }
- return total;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement