The output seems to be right in intellij all the numbers greater than 10 are being removed but the last condition isn't verifying, need help.
package com.codegym.task.task08.task0814;
import java.util.*;
/*
Greater than 10? You're not a good fit for us
*/
public class Solution {
public static HashSet<Integer> createSet() {
HashSet<Integer> set = new HashSet<>();
for (int i = 0; i < 20; i++){
set.add(i + 1);
}
return set;
}
public static HashSet<Integer> removeAllNumbersGreaterThan10(HashSet<Integer> set) {
set = createSet();
set.removeIf(integer -> integer > 10);
return set;
}
public static void main(String[] args) {
}
}