예제 #1
0
        private static void ReadWorldWebs(Smartphone mobile)
        {
            var webs = Console.ReadLine().Split(new[] { " " }, StringSplitOptions.None);

            foreach (var web in webs)
            {
                Console.WriteLine(mobile.Browsing(web));
            }
        }
예제 #2
0
        public static void Main()
        {
            string[] phoneNumbers = Console.ReadLine().Split();
            string[] sites        = Console.ReadLine().Split();

            ICallable   phone = new Smartphone(phoneNumbers, sites);
            IBrowseable site  = new Smartphone(phoneNumbers, sites);

            Console.WriteLine(phone.CallNumbers());
            Console.WriteLine(site.Browsing());
        }
예제 #3
0
        public static void Main()
        {
            var calls = Console.ReadLine()
                        .Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

            var sites = Console.ReadLine()
                        .Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

            var smartPhone = new Smartphone(calls, sites);

            Console.WriteLine(smartPhone.Calling());

            Console.WriteLine(smartPhone.Browsing());
        }
예제 #4
0
        public static void Main(string[] args)
        {
            string[] phoneNumbers = Console.ReadLine().Split();
            string[] urls         = Console.ReadLine().Split();

            Smartphone smartphone = new Smartphone("Iphone");

            for (int i = 0; i < phoneNumbers.Length; i++)
            {
                Console.WriteLine(smartphone.Calling(phoneNumbers[i]));
            }

            for (int i = 0; i < urls.Length; i++)
            {
                Console.WriteLine(smartphone.Browsing(urls[i]));
            }
        }
예제 #5
0
        public static void Main()
        {
            var numbers = Console.ReadLine().Split();
            var urls    = Console.ReadLine().Split();

            Smartphone smartphone = new Smartphone();

            foreach (var number in numbers)
            {
                Console.WriteLine(smartphone.Calling(number));
            }

            foreach (var url in urls)
            {
                Console.WriteLine(smartphone.Browsing(url));
            }
        }
예제 #6
0
        static void Main(string[] args)
        {
            Smartphone smartPhone = new Smartphone();

            string[] phoneInput = Console.ReadLine().Split();

            string[] urlInput = Console.ReadLine().Split();

            for (int i = 0; i < phoneInput.Length; i++)
            {
                Console.WriteLine(smartPhone.Calling(phoneInput[i]));
            }

            for (int i = 0; i < urlInput.Length; i++)
            {
                Console.WriteLine(smartPhone.Browsing(urlInput[i]));
            }
        }
예제 #7
0
        private static void Browsing(string url)
        {
            IBrowsing webSite = new Smartphone();

            Console.WriteLine(webSite.Browsing(url));
        }