I'm still very much a beginner at this stuff, I might not be learning as fast as I should be. But I'm stuck on this one and kinda need help. Not sure how much of this code is wrong, perhaps all of it is, haha. Just let me know please :D
package com.codegym.task.task08.task0814;
import java.util.HashSet;
import java.util.Set;
/*
Greater than 10? You're not a good fit for us
*/
public class Solution {
public static HashSet<Integer> createSet() {
HashSet<Integer> set = new HashSet<Integer>();
for(int i=0;i<20;i++) {
set.add(i);
}
return set;
}
public static HashSet<Integer> removeAllNumbersGreaterThan10(HashSet<Integer> set) {
for(int j=0;j<20;j++) {
if(set.contains(j>10)) {
set.remove(j);
}
}
return set;
}
public static void main(String[] args) {
}
}