code: public static int[] parseInts(String[] array) {
      int[] result = new int[array.length];
      for (int i = 0; i < array.length; i++)
        result[i] = Integer.parseInt(array[i]);
      return result;
    }
docs: Takes an array of Strings with integer values and returns an array of ints, or throws a
  {@link NumberFormatException} if there's a problem.