static void Main(string[] args) { var jumpNumbers = Console.ReadLine().Split(", ").Select(int.Parse).ToArray(); var lake = new Lake(jumpNumbers); Console.WriteLine(string.Join(", ", lake)); }
public static void Main() { int[] stones = Console.ReadLine().Split(new char[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse).ToArray(); Lake <int> lake = new Lake <int>(stones); Console.WriteLine(string.Join(", ", lake.ToArray())); }
static void Main(string[] args) { int[] stoneValues = Console.ReadLine().Split(", ").Select(int.Parse).ToArray(); Lake lake = new Lake(stoneValues); Console.WriteLine(string.Join(", ", lake)); }
static void Main(string[] args) { int[] stones = Console.ReadLine() .Split(", ", StringSplitOptions.RemoveEmptyEntries) .Select(int.Parse) .ToArray(); Lake lake = new Lake(stones); Console.WriteLine(string.Join(", ", lake)); }
static void Main(string[] args) { string input = Console.ReadLine(); int[] rocks = input.Split(", ").Select(int.Parse).ToArray(); Lake <int> lake = new Lake <int>(rocks); Console.WriteLine(string.Join(", ", lake)); }
public static void Main() { var stones = Console.ReadLine() .Split(", ") .Select(int.Parse) .ToList(); var lake = new Lake(stones); Console.WriteLine(string.Join(", ", lake)); }