public static int indexOf(float[] array, float value) {
    """
	Finds the first occurrence of value in <code>float</code> array.
    """
		for (int i = 0; i < array.length; i++) {
			if (Float.compare(array[i], value) == 0) {
				return i;
			}
		}
		return -1;
	}
public static int indexOf(float[] array, float value) {
		for (int i = 0; i < array.length; i++) {
			if (Float.compare(array[i], value) == 0) {
				return i;
			}
		}
		return -1;
	}
public static int indexOf ( float [ ] array , float value ) { for ( int i = 0 ; i < array . length ; i ++ ) { if ( Float . compare ( array [ i ] , value ) == 0 ) { return i ; } } return - 1 ; }
Finds the first occurrence of value in <code>float</code> array.
Finds the first occurrence of value in <code > float< / code > array .