I have this situation: every time I load a name and an age I put them in a separate arraylist, after that, I want it to show me the data that it loads (name, age), something like "the person's name is ... and he's... years old"
Next, the subroutine where I do that. I did it with two for each, which makes the data repeat.
Sub MostrarListado(ByRef arrayNombre As ArrayList, ByRef arrayEdad As ArrayList)
For Each nombre In arrayNombre
For Each edad In arrayEdad
Console.WriteLine("La persona se llama: " & nombre)
Console.WriteLine("y tiene: " & edad & " " & "anos")
Next
Next
End Sub