提示:您可在线编辑运行本教程的实例 - 运行实例,去试试!
从双数组中获取最小值
//package com.nowjava; /* 来 自* 时代Java - nowjava.com */ public class Main { public static void main(String[] argv) throws Exception { double[] array = new double[] { 34.45, 35.45, 36.67, 37.78, 37.0000, 37.1234, 67.2344, 68.34534, 69.87700 }; System.out.println(getMin(array)); } public static double getMin(double[] array) { double min = Double.MAX_VALUE; for (int i = 0; i < array.length; i++) { if (