I also like for-each loops but I'm not sure they make sense if your using an array and keeping an index anyway. It's also more "idiomatic" for these kind of "search for index" methods to return -1 if the item is not found.
```Java
for (int i = 0; i < entryValues.length; i++) {
    if (entryValues[i].equals(item)) {
        return i;
    }
}
return -1;
```