Curly Braces in the if condition in Java
<p>Why does this first <code>if</code> compile well and the second fail?</p>

<pre><code>if(proceed) {int i;} // This compiles fine.
if(proceed) int i;// This gives an error. (Syntax error on token ")", { expected after this token)
</code></pre>
