Here you can find the source of max4(double v1, double v2, double v3, double v4)
private static double max4(double v1, double v2, double v3, double v4)
//package com.java2s; /*// ww w . j av a 2 s . c o m * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ public class Main { private static double max4(double v1, double v2, double v3, double v4) { return Math.max(Math.max(v1, v2), Math.max(v3, v4)); } }