1234567891011121314151617 |
-
- /**
- * Created by leon on 1/10/18.
- */
- public class MainApplication {
- public static void main(String[] args){
- Inventory inventory = new Inventory();
- Product tea = new Product ("asdf", 44.43, 3);
- Product coffee = new Product("kedk", 234.88, 5);
- inventory.add(tea);
- inventory.add(coffee);
-
- int quantity = inventory.getTotalQuantity();
- System.out.println("Total quantity is " + quantity);
- }
- }
|