public static void Main(string[] args)
        {
            #region 辞書登録プログラム
            //Console.WriteLine("**********************");
            //Console.WriteLine("* 辞書登録プログラム *");
            //Console.WriteLine("**********************");
            //while (true)
            //{
            //    Console.WriteLine("1.登録  2.内容を表示");
            //    Console.Write(">");
            //    var type = int.Parse(Console.ReadLine());

            //    if(type == 1)
            //    {
            //        DuplicateKey();
            //    }
            //    else if (type == 2)
            //    {
            //        // ディクショナリの内容を列挙
            //        foreach (var item in dict)
            //        {
            //            foreach (var term in item.Value)
            //            {
            //                Console.WriteLine("{0} : {1}", item.Key, term);
            //            }
            //        }
            //        break;
            //    }
            //    else
            //    {
            //        Console.WriteLine("正しい値を入力してください。");
            //    }
            //}
            #endregion

            #region 問題7.1
            //var text = "Cozy lummox gives smart squid who asks for job pen";
            //Console.WriteLine("---7.1.1---");
            //Exercise1_1(text);  //問題7.1.1

            //Console.WriteLine("\n---7.1.2---");
            //Exercise1_2(text);  //問題7.1.2
            #endregion

            // コンストラクタ呼び出し
            var abbrs = new Abbreviations();

            // Addメソッドの呼び出し例
            abbrs.Add("IOC", "国際オリンピック委員会");
            abbrs.Add("NPT", "核兵器不拡散条約");

            // インデクサの利用例
            var names = new[] { "WHO", "FIFA", "NPT", };
            foreach (var name in names)
            {
                var fullname = abbrs[name];
                if (fullname == null)
                {
                    Console.WriteLine($"{name}は見つかりません");
                }
                else
                {
                    Console.WriteLine($"{name}={fullname}");
                }
            }
            Console.WriteLine();

            // ToAbbreviationメソッドの利用例
            var japanese     = "東南アジア諸国連合";
            var abbreviation = abbrs.ToAbbreviation(japanese);
            if (abbreviation == null)
            {
                Console.WriteLine($"{japanese} は見つかりません");
            }
            else
            {
                Console.WriteLine($"「{japanese}」の略語は {abbreviation} です");
            }
            Console.WriteLine();

            // FindAllメソッドの利用例
            foreach (var item in abbrs.FindAll("国際"))
            {
                Console.WriteLine($"{item.Key}={item.Value}");
            }
            Console.WriteLine();


            //7.2.3
            Console.WriteLine($"用語数:{abbrs.Count}");

            Console.Write("削除する省略語:");
            var addrRemove = Console.ReadLine();
            if (abbrs.Remove(addrRemove))
            {
                Console.WriteLine($"{addrRemove}を削除しました");
            }
            else
            {
                Console.WriteLine($"{addrRemove}は登録されてません");
            }
            Console.WriteLine($"用語数:{abbrs.Count}");


            //7.2.4
            Console.WriteLine("\n---3文字の省略語---");
            abbrs.Addr3();
        }