Open Luro02 opened 1 month ago
The current implementation isn't any better than using a for-loop. Maybe only suggest this as an extension to .addAll? Like here:
.addAll
for (int i = start; i < end; i++) { result.add(list.get(i)); } // -> replace with result.addAll(list.subList(start, end));
Description
The current implementation isn't any better than using a for-loop. Maybe only suggest this as an extension to
.addAll
? Like here: