title: if statement "not a statement"?
body: <p>Example code:</p>
  
  <pre><code>public class SalCal {
      public static void main(String[] args) {
          int a=0;
          if (a &gt; 1)
              String string = "fds";//hint:not a statement
      }
  }
  </code></pre>
  
  <p>Intellij IDEA hints at <code>String string = "fds";</code> </p>
  
  <blockquote>
    <p>not a statement</p>
  </blockquote>
  
  <p>But if I add braces on the either hand of  <code>String string = "fds";</code> , it will not hint like before anymore. Why?</p>