this.names = new string[] { "Austin", "Basil", "Cole", "David", "Eduward" };
public static void Main()
Program app = new Program();
Console.WriteLine("Type the name you want to find: ");
userName = Console.ReadLine();
Console.WriteLine(app.checkIfNameExists(userName));
public bool checkIfNameExists(string userName)
foreach (string name in this.names) {
if (name.Equals(userName)) {