private static void updateItems(ArrayList<InventoryPackages> packagesDB){
		
		Scanner updateItemScanner = new Scanner(System.in);

		System.out.println("---------------------------------------------------------------------------------------------------------------------------------------------");
		System.out.println("Choose Item to be Updated:");
		System.out.println("Product Category\tName\t\tSize\t\tNo. of Stocks\n");
		
		int num = 1;
		
		Iterator<InventoryPackages> it = packagesDB.iterator();
				
		while (it.hasNext()) {
			InventoryPackages ip = (InventoryPackages) it.next();
			
			if(ip.getProduct().getCategory() instanceof NutsCategory){
				System.out.print("["+num+++"] "+"Nuts\t\t");
			}
			else if(ip.getProduct().getCategory() instanceof CandyCategory){
				System.out.print("["+num+++"] "+"Candy\t\t");
			}
			else if(ip.getProduct().getCategory() instanceof NutsCandyCategory){
				System.out.print("["+num+++"] "+"Nuts And Candy\t");
			}
			
		System.out.print(ip.getProduct().getName()+"\t\t");
		
		System.out.print(ip.getSize()+"\t\t");
		
		System.out.print(ip.getNumberOfStock()+"\t\t\n");
		
		}
		
		System.out.print("\nEnter Number to be updated: ");
		int numberChoice = Integer.parseInt(updateItemScanner.nextLine());
		System.out.print("\nEnter Number of Stocks: ");
		int input = updateItemScanner.nextInt();
		
		int ctr=0;
		for(InventoryPackages ip : packagesDB){
			ctr++;
			if (ctr==numberChoice) {
				ip.setNumberOfStock(input);
			}
		}
		
		try {
			saveDB(packagesDB);
		} catch (IOException e) {
			e.printStackTrace();
		};
		 
	}