I'm trying to make a program that lets user to input an array of lastnames then firstnames. Then display the a list of firstname first, then the lastname. For example:
Input: Smith, John
: Doe, Jane
displays like:
John Smith
Jane Doe
This is what i got so far.
Module Ex04
Sub Main()
Dim m As Integer
Dim anArrayList As ArrayList = New ArrayList(5)
Dim inputString As String = "!"
Do While Not inputString.StartsWith("$")
Console.WriteLine("Enter a full name, Last, First I. - $ to end input")
inputString = Console.ReadLine()
anArrayList.Add(inputString)
Loop
For m = 0 To 5
Console.WriteLine(anArrayList(m))
m = m + 1
Next
Console.ReadLine()
End Sub
End Module