I am trying to make a basic console application that allows the user to input 3 names, and then sort it alphabetically. This is not working.
Here is my code.
Dim names(2) As String
Console.WriteLine("Name 1 ?")
names(0) = Console.ReadLine
Console.WriteLine("Name 2 ?")
names(1) = Console.ReadLine
Console.WriteLine("Name 3 ?")
names(2) = Console.ReadLine
Array.Sort(names)
Console.WriteLine("Your names are:" & names)
The console is not printing the code.