Open Luro02 opened 1 month ago
This check:
for (var elem : collection) { list.add(elem); } // -> can be written as: list.addAll(collection);
can be generalized to work with other methods like
containsAll
removeAll
retainAll
Description
This check:
can be generalized to work with other methods like
containsAll
removeAll
retainAll