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");
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");
- duplicates
-
JDK-6245673 (coll) Add a varargs constructor to the various Collection implementations
- Closed