how to print an index of an array in java code example
Example 1: java indexof array
java.util.Arrays.asList(theArray).indexOf(o)
Example 2: get index of element in array java
System.out.println(new String(list).indexOf("e"));
java.util.Arrays.asList(theArray).indexOf(o)
System.out.println(new String(list).indexOf("e"));