java indexof array

Java
java.util.Arrays.asList(theArray).indexOf(o)
Source

Also in Java: