What you mean is, you want to check if a string is in a array, then if it is, get the index, right?

If the array is a ArrayList you can't check with the string alone, ArrayList.get() needs the...