how to find position in array java code example
Example 1: java indexof array
java.util.Arrays.asList(theArray).indexOf(o)
Example 2: get the location of an item in an array
console.log(scores.indexOf(10)); // 0
console.log(scores.indexOf(30)); // 2
console.log(scores.indexOf(50)); // -1
console.log(scores.indexOf(20)); // 1