Imports System
Imports System.Collections.Generic
Imports System.Linq
Public Class Program
Public Shared Sub Main()
Dim array As String() = {"c#", "c", "c++", "vb", "java", "c#", "java", "c", "python"}
Dim unique_words As IEnumerable(Of String) = array.Distinct()
For Each word In unique_words
Console.WriteLine(word)
Next
End Sub
End Class
' run:
'
' c#
' c
' c++
' vb
' java
' python
'