Here you can find the source of max(final double... doubles)
Parameter | Description |
---|---|
doubles | Doubles to have the maximum |
public static final double max(final double... doubles)
//package com.java2s; //License from project: Open Source License public class Main { /**// w w w.j a va2 s . c o m * Maximum of several double * * @param doubles * Doubles to have the maximum * @return Maximum of doubles */ public static final double max(final double... doubles) { double max = doubles[0]; for (final double real : doubles) { max = real > max ? real : max; } return max; } }