Example #1
0
        static void Main(string[] args)
        {
            List <string> numbers = Console.ReadLine().Split().ToList();
            List <string> sites   = Console.ReadLine().Split().ToList();

            var smartphone = new Smartphone();

            numbers.ForEach(x =>
            {
                try
                {
                    Console.WriteLine(smartphone.Calling(x));
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
            }
                            );
            sites.ForEach(x =>
            {
                try
                {
                    Console.WriteLine(smartphone.Browse(x));
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
            }
                          );
        }