hw/hw5/SeamCarver.java
private int findMin(double[] e) {
        int minIndex = 0;
        for (int i = 0; i < e.length; i += 1) {
            if (e[i] < e[minIndex]) minIndex = i;
        }
        return minIndex;
    }
/**
     *  private helper method
     *
     *  Find smallest element in a 1-D array
     *
     *  @param  e double[] array
     *  @return index of min value in the array
     */
private helper method
Find smallest element in a 1-D array

@param  e double[] array
@return index of min value in the array
private helper method Find smallest element in a 1 - D array @param e double [] array @return index of min value in the array
private int findMin(double[] e) {
        int minIndex = 0;
        for (int i = 0; i < e.length; i += 1) {
            if (e[i] < e[minIndex]) minIndex = i;
        }
        return minIndex;
    }
private int findMin ( double [ ] e ) { int minIndex = 0 ; for ( int i = 0 ; i < e . length ; i += 1 ) { if ( e [ i ] < e [ minIndex ] ) minIndex = i ; } return minIndex ; }
private helper method
  Find smallest element in a 1-D array
private helper method Find smallest element in a 1 - D array