Here you can find the source of maxIndex(double[] value)
public static double maxIndex(double[] value)
//package com.java2s; //License from project: Open Source License public class Main { /**/*w w w . j a va 2 s . c om*/ * returns the index of the greatest element from the given array */ public static double maxIndex(double[] value) { double result = Double.NEGATIVE_INFINITY; int index = 0; for (int i = 0; i < value.length; i++) { if (value[i] > result) result = value[i]; index = i; } return index; } }