Here you can find the source of max(double number1, double number2)
public static double max(double number1, double number2)
//package com.java2s; //License from project: Open Source License public class Main { public static double max(double number1, double number2) { return number1 > number2 ? number1 : number2; }/*w ww. j av a2s. c o m*/ public static int max(int number1, int number2) { return number1 > number2 ? number1 : number2; } }