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

Add constructor with elipse argument

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7
    • core-libs
    • x86
    • windows_xp

      A DESCRIPTION OF THE REQUEST :
      Add a constructor taking an ellipse argument:
      eg: public ArratList<E>(E... args);

      JUSTIFICATION :
      It would be useful while coding

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      List<String> foo = new ArrayList<>("I love", "Java", "and JEE");
      ACTUAL -
      List<String> foo = new ArrayList<>();
      foo.add"I love");
      foo.add("Java");
      foo.add("and JEE");

            darcy Joe Darcy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: