Here you can find the source of max8(double v1, double v2, double v3, double v4, double v5, double v6, double v7, double v8)
private static double max8(double v1, double v2, double v3, double v4, double v5, double v6, double v7, double v8)
//package com.java2s; /*/*from w w w . j a v 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 max8(double v1, double v2, double v3, double v4, double v5, double v6, double v7, double v8) { return Math.max(max4(v1, v2, v3, v4), max4(v5, v6, v7, v8)); } private static double max4(double v1, double v2, double v3, double v4) { return Math.max(Math.max(v1, v2), Math.max(v3, v4)); } }