Imports System
Imports System.Collections.Generic
Public Class Example
Public Shared Sub Main(ByVal args As String())
Dim list As List(Of Integer) = New List(Of Integer) From {
5, 3, 6, 7, 1, 9, 8
}
list.sort()
Console.WriteLine(list(0))
Console.WriteLine(list(1))
End Sub
End Class
' run
'
' 1
' 3
'