title: Storing input into Arrays in Visual Basic
body: <p>I'm just got into Visual Basic and I'm trying to "recode" my programs from java into VB. But my main problem is how to do that, i don't the syntax too much. I have read some but I find it hard(I'm a slow learner :P). </p>
  
  <p>Edit:
  Here is the code I am trying:</p>
  
  <pre><code>Module Module1
  Dim arrays(5) As String
  
  Sub Main()
      Console.WriteLine("Enter your Names:")
      For i As Integer = 0 To arrays.Length
          arrays(i) = Console.ReadLine
      Next i
  
      For Each arr As String In arrays
          Console.WriteLine(arr)
      Next
      Console.ReadLine()
  End Sub
  </code></pre>
  
  <p>End Module</p>
  
  <p>At some point, whenever I run it and try to input, it goes beyond the number of index. And doesn't write the inputs :P</p>