code: public static Integer[] transformToInt(final String[] ids) {
      if (ids == null) return new Integer[0];
      Integer[] idsOfInteger = new Integer[ids.length];
      for (int i = 0; i < ids.length; i++) {
        idsOfInteger[i] = new Integer(ids[i]);
      }
      return idsOfInteger;
    }
docs: transformToInt.
  
  @param ids an array of {@link java.lang.String} objects.
  @return an array of {@link java.lang.Integer} objects. If ids is null, return Integer[0]