filter algorithms code example
Example: Algorithms - filtering
public List<Integer> greaterThanHundred(List<Integer> numbers) {
List<Integer> filtered = new ArrayList<>();
for (Integer i : numbers) {
if (i > 100) {
filtered.add(i);
}
}
return filtered;
}