index of an array procesing

Java
//when using convert the list and value to string using str()

int arrayIndex(String[] x, String value) {
  for (int i=0; i<x.length; i++){
    if (test[i]==value) {
      return(i);
    }
  }
}
Source

Also in Java: