how to return an index array in java code example
Example 1: how to get array index value into variable in java
String zz = aa[5];
Example 2: java array get index
public int getArrayIndex(int[] arr,int value) {
int k=0;
for(int i=0;i<arr.length;i++){
if(arr[i]==value){
k=i;
break;
}
}
return k;
}