public static int min ( int [ ] values ) { int min = Integer . MAX_VALUE ; for ( int i = 0 ; i < values . length ; ++ i ) { if ( values [ i ] < min ) { min = values [ i ] ; } } return min ; }
Find the minimum value from the given array .