Imports System
Public Class Example
Public Shared Sub Main()
Dim letters() As String = { "A", "B", "C", "F", "D", "A", "E" }
Console.WriteLine()
For Each letter As String In letters
Console.WriteLine(letter)
Next
Console.WriteLine("Array.LastIndexOf(letters, ""A""): {0}",Array.LastIndexOf(letters, "A"))
Console.WriteLine("Array.LastIndexOf(letters, ""A"", 3): {0}",Array.LastIndexOf(letters, "A", 3))
Console.WriteLine("Array.LastIndexOf(letters, ""A"", 4, 4): {0}",Array.LastIndexOf(letters, "A", 4, 4))
End Sub
End Class