Duplicate :
|
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");
|