1: public static <T> boolean inArray(T[] anArray, T anEntry)
2: {
3: boolean found = false;
4: int index = 0;
5: while (!found && (index < anArray.length))
6: {
7: if (anEntry.equals(anArray[index]))
8: found = true;
9: index++;
10: } // end while
11:
12: return found;
13: } // end inArray
14: // Version 4.0