title: Does the StringBuffer equals method compare content?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2012305/comparing-stringbuffer-content-with-equals">Comparing StringBuffer content with equals</a>  </p>
  </blockquote>
  
  
  
  <pre><code>StringBuffer s1= new StringBuffer("Test");
  StringBuffer s2 = new StringBuffer("Test");
  if(s1.equals(s2)) {
    System.out.println("True");
  } else {
    System.out.println("False");
  }
  </code></pre>
  
  <p>Why does that code print "False"?</p>