title: For Loops Java Unreachable Statement
body: <p>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?  </p>
  
  <pre><code>boolean containsAll(IntSet [] s) {
  
  
      return false;
  
      // Unreachable Code begins here
      for (int y = 0; y&lt; s.length; y++) {
          for (int i = 0; i&lt; s[y].arr.length; i++) {
              if (s[y].contains(i)) {
                  if (i&gt;=arr.length) {
                      return false;
                  }
                  if (!arr[i]) {
                      return false;
                  }
              }
          }
      }
      return true;
  }
  </code></pre>