SHOW:
|
|
- or go back to the newest paste.
1 | import java.util.LinkedList; | |
2 | import java.util.List; | |
3 | ||
4 | public class Buying { | |
5 | ||
6 | String nazwa; | |
7 | double suma; | |
8 | List<Products> listProducts = new List<Products>; | |
9 | ||
10 | public Buying(String nazwa, double suma) { | |
11 | - | // Products productsObject = new Products("lol", 2); |
11 | + | |
12 | this.suma = suma; | |
13 | ||
14 | } | |
15 | public void addToCheckout(){ | |
16 | ||
17 | Products object = new Products("lol", 2); | |
18 | listProducts.add(object); | |
19 | ||
20 | - | List<String> checkoutName = new LinkedList<String>(); |
20 | + | |
21 | - | List<Double> checkoutPrice = new LinkedList<Double>(); |
21 | + | |
22 | } | |
23 | } |