MainApplication.java 572B

1234567891011121314151617181920212223
  1. /**
  2. * Created by leon on 1/10/18.
  3. */
  4. //creates the inventory
  5. public class MainApplication {
  6. public static void main(String[] args){
  7. Inventory myInventory = new Inventory();
  8. Product product = new Product(86, "Herbal Tea", 1.6, 2);
  9. Product product2 = new Product(87, "Black Tea", 2.0, 2);
  10. Product product3 = new Product(88, "Green Tea", 3.5, 6);
  11. myInventory.add(product);
  12. myInventory.add(product2);
  13. myInventory.add(product3);
  14. System.out.println(myInventory.size());
  15. }
  16. }