get index of element in integer array java code example Example: java indexof array java.util.Arrays.asList(theArray).indexOf(o)