how to find what index a string is in an array code example Example: java indexof array java.util.Arrays.asList(theArray).indexOf(o)