Example #1
0
        public static void Main()
        {
            Counter cnt  = new Counter();
            String  Line = Console.ReadLine();

            String[] words = Line.Split(',');
            if (Line.Length == 0)
            {
                Console.WriteLine("No data");
                return;
            }

            foreach (var word in words)
            {
                cnt.AddWord(word);
            }

            Print(cnt);
        }