Answers for "filtering algorithms"

0

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;
}
Posted by: Guest on April-25-2021
0

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;
}
Posted by: Guest on April-25-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language