Here you can find the source of minIndex(int[] from)
public static int minIndex(int[] from)
//package com.java2s; //License from project: Apache License public class Main { public static int minIndex(int[] from) { int result = 0; for (int i = 1; i < from.length; ++i) if (from[i] < from[result]) result = i;//from www. j a v a2 s . com return result; } public static int minIndex(float[] from) { int result = 0; for (int i = 1; i < from.length; ++i) if (from[i] < from[result]) result = i; return result; } }