In vb.net, how can i declare a array without mentioning size? and it changes the size as the input comes?
Sub Main() Dim s() As String ReDim Preserve s(UBound(s) + 1) Dim counter As Integer counter = 0 DoConsole.WriteLine("Enter Name: ") s(counter) = Console.ReadLine() counter = counter + 1 Loop Until counter <> -1 For Each arr In s Console.WriteLine(arr) Next
End Sub
End Module
#vb.net