code: public static int indexOf (int[] list, int value)
      {
          int llength = list.length; // no optimizing bastards
          for (int i = 0; i < llength; i++) {
              if (list[i] == value) {
                  return i;
              }
          }
          return -1;
      }
docs: Looks for an element that is equal to the supplied value and
  returns its index in the array.
  
  @return the index of the first matching value if one was found,
  -1 otherwise.