Here you can find the source of minOfArray(float[] array)
Parameter | Description |
---|---|
array | the array |
public static float minOfArray(float[] array)
//package com.java2s; /*//www . j a v a2 s . c o m * Copyright (C) 2010-2014 Andreas Maier * CONRAD is developed as an Open Source project under the GNU General Public License (GPL). */ public class Main { /** * Returns the minimal value in a given array * @param array the array * @return the minimal value */ public static float minOfArray(float[] array) { float min = Float.MAX_VALUE; for (int i = 0; i < array.length; i++) { if (array[i] < min) { min = array[i]; } } return min; } }