ArrayList Autoboxing
Given the following declaration:
ArrayList<Integer> scores = new ArrayList<>();
Which statement correctly adds the primitive integer 100 to the scores list using autoboxing?
A
scores.add(100.0)
B
scores.add(new int(100))
C
scores.add(100)
D
scores.add(Integer.parseInt(“100”))
Question Leaderboard
Not enough data yet to show leaderboard.
APFIVE