Esempio n. 1
0
        public static void Main(string[] args)
        {
            Lake lake = new Lake
                            (Console.ReadLine().Split(new char[] { ' ', ',' }, StringSplitOptions.RemoveEmptyEntries)
                            .Select(int.Parse).ToList());

            Console.WriteLine(string.Join(", ", lake));
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var input = Console.ReadLine().Split(new string[] { ", " }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse).ToList();

            var list = new Lake(input);

            Console.WriteLine(string.Join(", ", list));
        }