java array indexof and index not found code example Example: java indexof array java.util.Arrays.asList(theArray).indexOf(o)