|
comparing
I want to check which words that i read from an input text file (one word per line) do not occur in an array of strings (that I already have in my program). I used the .equals to compare the word to every word of my array. Then when I print (everytime a word does not occur in in the array) I see e.g. 10 times (=number of elements in the array) the phrase ("The word" + fileLine+ "does not occur."). What should I do? When using arrays there is no 'boolean contains ();'
Last edited by Feng : 11-23-2007 at 09:01 AM.
|