Beispiel #1
0
        static void Main(string[] args)
        {
            Cart cart = new Cart();

            if (args.Length > 0)
            {
                cart.ScanItems(args[0]);
            }
            else
            {
                cart.ScanItems("Apple, Apple, Orange, Apple");
            }

            cart.PrintCart();
        }