public static double min ( double ... nums ) { double min = nums [ 0 ] ; for ( int i = 1 ; i < nums . length ; i ++ ) { if ( nums [ i ] > min ) { min = nums [ i ] ; } } return min ; }
Find the minimum in an array of numbers .