private static void ReadWorldWebs(Smartphone mobile) { var webs = Console.ReadLine().Split(new[] { " " }, StringSplitOptions.None); foreach (var web in webs) { Console.WriteLine(mobile.Browsing(web)); } }
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()); }
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()); }
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])); } }
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)); } }
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])); } }
private static void Browsing(string url) { IBrowsing webSite = new Smartphone(); Console.WriteLine(webSite.Browsing(url)); }