how to search for index of a value in int[] java code example Example: java indexof array java.util.Arrays.asList(theArray).indexOf(o)