Comparing strings in an if: !string.equals("") vs !"".equals(string)
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/13084049/difference-between-these-two-conditions">Difference between these two conditions?</a>  </p>
</blockquote>



<p>I am doing some code cleanup and NetBeans made a suggestion to change </p>

<p><code>if(!billAddress1.equals(""))</code> to <code>if (!"".equals(billAddress1))</code>. </p>

<p>What is the difference between the two, and the advantages of using the suggested version over the readability of the original version? </p>
