G2A Many GEOs
SHARE
TWEET

Untitled

a guest Apr 1st, 2020 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package TUT_5;
  2.  
  3. import java.lang.reflect.Array;
  4. import java.security.KeyStore;
  5. import java.util.ArrayList;
  6. import java.util.Arrays;
  7.  
  8. public class Main {
  9.     public static void main(String[] args) {
  10.  
  11.         User u1=new User("User1@pejot.pl");
  12.         User u2=new User("User2", "Surname2", "qwerty@pejot.pl", "1234");
  13.         User u3=new User("123@pejot.pl");
  14.  
  15.         u1.isRegistered();
  16.  
  17.         u1.upgradeAccount();
  18.         u1.isRegistered();
  19.  
  20.         Product p1 = new Product("Yogurt", 3.5, 200678);
  21.         Product p2 = new Product("Milk", 5, 230678);
  22.         Product p3 = new Product("Ham", 9.5, 270678, 127);
  23.         p1.changeAmount(5);
  24.         p2.changePrice(4.6);
  25.  
  26.  
  27.         ArrayList<Product> allProducts = new ArrayList<>();
  28.  
  29.         Category c = new Category("General Category", allProducts);
  30.         Category c1 = new Category("SecondCategory");
  31.         Category c2 = new Category();
  32.  
  33.         c.addProduct(p1);
  34.         c.addProduct(p2);
  35.         c.addProduct(p3);
  36.  
  37.         ArrayList<Product> userProducts = new ArrayList<>();
  38.         Basket b=new Basket();
  39.         Basket b1=new Basket(u1);
  40.         Basket b2=new Basket(u2, userProducts);
  41.  
  42.     }
  43. }
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top