Posted on: 11/12/2012 1:05:54 AM | Views : 395

So I have this code so far and it works perfectly fine. I enter a sentence and it will delete all the duplicate words, but now I need to be able to only show words that never had duplicate. I know there is no need of a distinct anymore.. any ideas how i could right this? THanks!
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles removeDuplicatesButton.Click Dim sentenceArray As String = Convert.ToString(enterSentenceTextBox.Text) -convert the text inside the enterSentenceTextBox to a string and make it equal the sentenceArray Dim words As String() = sentenceArray.Split(New Char() {" "c}) -splitting sentenceArray by every space and declaring them as the variable "words" which are strings -using LINQ to delete duplicated words Dim stringOfWords = From value In words Order By value.ToLower Select value.ToLower Distinct ...

Go to the complete details ...