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