I keep getting an error thrown at the line that I have put a comment above the line that says "unreachable statement." How can I fix this? Is there anything else wrong with this code?
boolean containsAll(IntSet [] s) {
return false;
// Unreachable Code begins here
for (int y = 0; y< s.length; y++) {
for (int i = 0; i< s[y].arr.length; i++) {
if (s[y].contains(i)) {
if (i>=arr.length) {
return false;
}
if (!arr[i]) {
return false;
}
}
}
}
return true;
}