Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.LinkedList;
- import java.util.List;
- public class Buying {
- String nazwa;
- double suma;
- List<Products> listProducts = new List<Products>;
- public Buying(String nazwa, double suma) {
- this.nazwa = nazwa;
- this.suma = suma;
- }
- public void addToCheckout(){
- Products object = new Products("lol", 2);
- listProducts.add(object);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement