Java Number Max Value max(Number num1, Number num2)

Here you can find the source of max(Number num1, Number num2)

Description

max

License

Apache License

Declaration

public static Number max(Number num1, Number num2) 

Method Source Code

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

public class Main {
    public static Number max(Number num1, Number num2) {
        return (num1.doubleValue() > num2.doubleValue()) ? num1 : num2;
    }//from  w  w  w .ja va 2  s . co m
}

Related

  1. max(Integer i1, Integer i2)
  2. max(Iterable nums)
  3. max(long a, long b)
  4. max(Number a, Number b)
  5. max(Number n0, Number n1)
  6. Max(Object in)
  7. max(Object o1, Object o2)
  8. max(String a, String b)
  9. max(String content, int max, String dotDotDot)