string[] names = {"William.", "James", "Oliver", "Lucas"}; foreach (string i in names) { Console.WriteLine(i); }