title: How can this equality statement be false?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6178585/equal-strings-arent-equal-in-java">Equal strings aren&#39;t equal (==) in Java?</a>  </p>
  </blockquote>
  
  
  
  <p>From Eclipse's Display window:</p>
  
  <pre><code> messages.get(i).getMsg() == lastMsg
   (boolean) false
   messages.get(i).getMsg().length()
   (int) 14
   lastMsg.length()
   (int) 14
   messages.get(i).getMsg()
   (java.lang.String) INSERT QUARTER
   lastMsg
   (java.lang.String) INSERT QUARTER
  </code></pre>
  
  <p>Fairly new to Java.  How can the first statement be false?  Am I missing something ridiculously simple here?</p>