Remove all elements:
- A
list.removeAll()
- Bcheck_circle
list.clear()
- C
list = null
- D
list.size() = 0
Explanation
<code>clear()</code> empties the list; size becomes 0.
AP Computer Science A· difficulty 3/5
Remove all elements:
list.removeAll()
list.clear()
list = null
list.size() = 0
Explanation
<code>clear()</code> empties the list; size becomes 0.
Want 10 more like this — adaptive to your weak spots?