minimum = doubles[i];
minimum = ints[i];
  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;  }