title: Java if statements without brackets creates unexpected behaviour
body: <p>Why does this work:</p>
  
  <pre><code>if(name.equals("email_stub")) {
      if(emailStub == "")
          emailStub = results.getString("text");
  } else if(name.equals("fax")) {
      if(fax == "")
          fax = results.getString("text");
  } 
  </code></pre>
  
  <p>But without the first tier of brackets, it will not work and instead fail to logically separate the if statements. i.e. it will never go beyond the first if statement and won't work as intended.</p>
  
  <pre><code>if(name.equals("email_stub"))
      if(emailStub == "")
          emailStub = results.getString("text");
  else if(name.equals("fax"))
      if(fax == "")
          fax = results.getString("text");
  </code></pre>
  
  <p>I thought it weird when I ran into this issue.</p>