import java.util.ArrayList; public class MainApplication { public static void main(String[] args){ Product apple = new Product("apple", 1000, 3.50, 15); Product eggs = new Product("eggs", 1001, 2.00, 18); Product bread = new Product("bread", 1002, 2.50, 25); Product rice = new Product("rice", 1003, 2.00, 15); Inventory inventory = new Inventory(); inventory.add(apple); inventory.add(eggs); inventory.add(bread); inventory.add(rice); System.out.print(inventory.getAllProductInfo()); System.out.print("Total inventory value: "+ inventory.getTotalInventoryValue()); } }