Dinu Comendant1,802 Points
add vs addAll
I don't quite understand what's the difference between these two, since when we do a for loop, we should get the same results, regardless if we use add or addAll.
Steven Parker171,091 Points
The difference is that you use a loop and "add" together to add one item at a time.
But when you use "addAll" you add an entire collection at once and you don't need a loop.