title: What does two consecutive blocks of code {}{} do?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1563030/anonymous-code-blocks-in-java">Anonymous code blocks in Java</a>  </p>
  </blockquote>
  
  
  
  <p>I just came across the following.</p>
  
  <pre><code>if ( test ) {
      {
          // statements 1
      }
      {
          // statements 2
      }
  }
  </code></pre>
  
  <p>It is the first time I've seen this. How does it work?</p>