package ShopManagement.model; import ShopManagement.ProductList; import java.util.ArrayList; import java.util.Scanner; public class Cart { ArrayList list; Guest guest; //CONSTRUCTOR public Cart() { this.list = new ArrayList(); this.guest = new Guest(); } public Product CartInput() { ProductList pList = new ProductList(); pList.readFile(); int Quantity = 0; int ID; int Total = 0; Scanner sc = new Scanner(System.in); //this.guest.Input(); System.out.println("How many product's types do you want to buy?"); int n = Integer.parseInt(sc.nextLine()); for(int i=0;i