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