Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

index of an array procesing

//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 by processing.org #
 
PREVIOUS NEXT
Tagged: #index #array #procesing
ADD COMMENT
Topic
Name
6+2 =