code: public static int getMinValue (int[] values)
      {
          int min = Integer.MAX_VALUE;
          int vcount = (values == null) ? 0 : values.length;
          for (int ii = 0; ii < vcount; ii++) {
              if (values[ii] < min) {
                  // new min
                  min = values[ii];
              }
          }
          return min;
      }
docs: Returns the minimum value in the given array of values, or {@link
  Integer#MAX_VALUE} if the array is null or zero-length.