Check out example codes for "java indexof array". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com