java how to get the index of an int array code example Example: get index of element in array java System.out.println(new String(list).indexOf("e"));