code: public static <T> int indexOf(T[] array, T element) {
  		for ( int i = 0; i < array.length; i++ ) {
  			if ( array[i].equals( element ) ) {
  				return i;
  			}
  		}
  		return -1;
  	}
docs: Return the position of an element inside an array
  
  @param array the array where it looks for an element
  @param element the element to find in the array
  @param <T> the type of elements in the array
  @return the position of the element if it's found in the array, -1 otherwise