public void GettingIcePerCup(Inventory inventory, Recipe recipe) { Console.WriteLine("How many cubes of sugar do you want to have per pitcher?"); amountOfIcePerCupInput = Console.ReadLine(); try { amountOfIcePerCup = Convert.ToInt32(amountOfIcePerCupInput); inventory.CheckingInventoryIceCubes(inventory, recipe); } catch { Console.WriteLine("You didnt type in a number. try again"); GettingIcePerCup(inventory, recipe); } }