public static int indexOf(double[] array, double value, int startIndex, int endIndex) {
    """
	Finds the first occurrence in <code>double</code> array from specified given position and upto given length.
    """
		for (int i = startIndex; i < endIndex; i++) {
			if (Double.compare(array[i], value) == 0) {
				return i;
			}
		}
		return -1;
	}
public static int indexOf(double[] array, double value, int startIndex, int endIndex) {
		for (int i = startIndex; i < endIndex; i++) {
			if (Double.compare(array[i], value) == 0) {
				return i;
			}
		}
		return -1;
	}
public static int indexOf ( double [ ] array , double value , int startIndex , int endIndex ) { for ( int i = startIndex ; i < endIndex ; i ++ ) { if ( Double . compare ( array [ i ] , value ) == 0 ) { return i ; } } return - 1 ; }
Finds the first occurrence in <code>double</code> array from specified given position and upto given length.
Finds the first occurrence in <code > double< / code > array from specified given position and upto given length .