Answers for "find position of element in array java"

2

java indexof array

java.util.Arrays.asList(theArray).indexOf(o)
Posted by: Guest on March-18-2020
0

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
Posted by: Guest on August-06-2020

Code answers related to "find position of element in array java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language