If the array is sorted, you can use Arrays.binarySearch to find the data.
Like this:
if (Arrays.binarySearch(stringArray, word)>=0) {
// word found in the array.
}
If the array is unsorted, commons lang, has the ArrayUtils.indexOf method.
Finally, if you are searching a large array, then a parallel search may be worthwhile using ParallelArray
, from JSR166 - coming in Java SE 7 and available now as a download. This article gives an introduction.