Java Number Max Value max(Iterable nums)

Here you can find the source of max(Iterable nums)

Description

max

License

Open Source License

Declaration

public static Integer max(Iterable<Integer> nums) 

Method Source Code

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

public class Main {
    public static Integer max(Iterable<Integer> nums) {
        Integer result = null;/*from   w  w w .  ja v  a 2  s . c om*/
        for (Integer num : nums) {
            if (result == null || num > result) {
                result = num;
            }
        }
        return result;
    }
}

Related

  1. max(int idx, int orderFrom, int orderTo)
  2. max(int x, int x2, int x3)
  3. max(int x, int y)
  4. max(Integer a, Integer b)
  5. max(Integer i1, Integer i2)
  6. max(long a, long b)
  7. max(Number a, Number b)
  8. max(Number n0, Number n1)
  9. max(Number num1, Number num2)