What names are displayed in the list box when the button is clicked on?
```
Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim file As String = "Ships.txt"
Dim ships() As String = FillArray(file)
lstBox.Items.Add(ships(2))
lstBox.Items.Add(ships.Min)
End Sub
Function FillArray(file As String) As String()
Dim names() As String = IO.File.ReadAllLines(file)
Return names
End Function
```
Assume the three lines of the file Ships.txt contain the following entries: Pinta, Nina, Santa
Maria
(A) Pinta and Nina
(B) Santa Maria and Pinta
(C) Nina and Santa Maria
(D) Santa Maria and Nina
(D) Santa Maria and Nina
You might also like to view...
Consider the following code snippet, where the array lists contain elements that are stored in ascending order:
ArrayList
During the program debugging stage, the people who will use the program test the software
Indicate whether the statement is true or false