How to find index of element in String array in Java code example Example: java indexof array java.util.Arrays.asList(theArray).indexOf(o)