//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); } } }