for (int i=0;i<doubles.length;i++) if ((i == 0) || (doubles[i] < minimum)){
for (int i = 0; i < ints.length; i++) { if ((i == 0) || (ints[i] < minimum)) {
  public static int minIndex(double [] doubles){    double minimum = 0;    int minIndex = 0;    for (int i=0;i<doubles.length;i++)      if ((i == 0) || (doubles[i] < minimum)){	minIndex = i;	minimum = doubles[i];      }    return minIndex;  }