Java Array Min Value min(Number... array)

Here you can find the source of min(Number... array)

Description

min

License

Apache License

Declaration

public static Number min(Number... array) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static Number min(Number... array) {
        Number min = array[0];/*  w  w w .  j  a va  2 s. c o m*/
        for (int i = 1; i < array.length; i++) {
            if (array[i].doubleValue() < min.doubleValue()) {
                min = array[i];
            }
        }
        return min;
    }
}

Related

  1. min(long first, long... rest)
  2. min(long[] arr)
  3. min(long[] array)
  4. min(long[] array)
  5. min(long[] array)
  6. min(Number[] array)
  7. min(T first, T... others)
  8. min(T... values)
  9. min(T[] args)