Java Array Max Value max(final Number... numbers)

Here you can find the source of max(final Number... numbers)

Description

max

License

Open Source License

Declaration

public static Number max(final Number... numbers) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static Number max(final Number... numbers) {
        double max = Double.MIN_VALUE;
        for (final Number n : numbers) {
            final double d = n.doubleValue();
            max = Math.max(max, d);
        }/*from ww  w  .j  a  v a  2  s .  co  m*/
        return max;
    }
}

Related

  1. max(final int[] arr)
  2. max(final int[] result, final int[] vec1, final int[] vec2)
  3. max(final int[] values)
  4. max(final int[] values)
  5. max(final long[] longs)
  6. max(final T p_enum1, final T p_enum2, final T[] enumValues)
  7. max(final T... elements)
  8. max(float... a)
  9. max(float... fs)