public static byte max(byte... array) {
    checkArgument(array.length > 0);
    int max = toInt(array[0]);
    for (int i = 1; i < array.length; i++) {
      int next = toInt(array[i]);
      if (next > max) {
        max = next;
      }
    }
    return (byte) max;
  }
public static byte max(byte... array) {
    checkArgument(array.length > 0);
    int max = toInt(array[0]);
    for (int i = 1; i < array.length; i++) {
      int next = toInt(array[i]);
      if (next > max) {
        max = next;
      }
    }
    return (byte) max;
  }
public static byte max ( byte ... array ) { checkArgument ( array . length > 0 ) ; int max = toInt ( array [ 0 ] ) ; for ( int i = 1 ; i < array . length ; i ++ ) { int next = toInt ( array [ i ] ) ; if ( next > max ) { max = next ; } } return ( byte ) max ; }
Returns the greatest value present in {@code array}.

@param array a <i>nonempty</i> array of {@code byte} values
@return the value present in {@code array} that is greater than or equal to every other value
in the array
@throws IllegalArgumentException if {@code array} is empty
Returns the greatest value present in { @code array } .