+ 1
Why is only B) Correct?
A) List<Integer> list = new List<Integer>(); B) List<Integer> list = new ArrayList<Integer>(); This is from a challenge question.
2 Antworten
+ 7
Because List is an abstract class and therefore can't be instantiated?
0
Is there a typo here?
Must be:
ArrayList<Integer> list = new ArrayList<Integer>();