Here you can find the source of min(final double... doubles)
Parameter | Description |
---|---|
doubles | Doubles to have the minimum |
public static final double min(final double... doubles)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w ww . j a v a 2s .com*/ * Minimum of several double * * @param doubles * Doubles to have the minimum * @return Minimum of doubles */ public static final double min(final double... doubles) { double min = doubles[0]; for (final double real : doubles) { min = real < min ? real : min; } return min; } }