Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4822887

RFE: java.util.Collection should have mthd. that adds an array to the collection

XMLWordPrintable



      Name: rmT116609 Date: 02/24/2003


      DESCRIPTION OF THE PROBLEM :
      There should be a method in the java.util.Collections class that will add an array of objects to the collection. The method's stub would look like the
      following:

      public boolean addAll(Object[])

      The contents of the array would be added to the collection in the order that they are read out of the array starting with an index of 0 and going to .length

      I can think of numerous times I've written for loops just to walk over an array and add it to an arraylist.
      (Review ID: 181602)
      ======================================================================

            jjb Josh Bloch
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: