a text file contains a number of English sentences and each line in the file holds just one sentence. consider a class which will perform the following:
1 reads these sentences and stores them in an array
2 displays the sentences from the array created in 1
3 sorts the sentences into alphabetical order
4 given a word, determines how many times the given word occurs in all the sentences.
please, any one out there with an idea!
1 reads these sentences and stores them in an array
2 displays the sentences from the array created in 1
3 sorts the sentences into alphabetical order
4 given a word, determines how many times the given word occurs in all the sentences.
please, any one out there with an idea!
Comment