11 Replies Latest reply: Jan 23, 2009 1:35 PM by 843785 RSS

    Convert Primitive Array to List...?

      Dear Friends,

      how to convert primitive array to collection...? for example i have one generic API
           final public static List<Boolean> arrayToList(int[] objects)
                return Arrays.asList(objects);
      it throws exception what i do... here how to handle generic types....?

      here this API should allow only primitive array not reference object

      Thank you,