title: Visual Basic String Array Alphabetical Sort
body: <p>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.</p>
  
  <p>Here is my code.</p>
  
  <pre><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:" &amp; names)  
  </code></pre>
  
  <p>The console is not printing the code.</p>