JDK-7075432 : Add constructor with elipse argument
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2011-08-05
  • Updated: 2012-03-20
  • Resolved: 2011-08-18
Related Reports
Duplicate :  
Description
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");

Comments
EVALUATION Closing as a duplicate of 6245673.
18-08-2011