title: Java comparison with == of two strings is false?
body: <p>String parts is String[6]:</p>
  
  <pre>
  ["231", "CA-California", "Sacramento-155328", "aleee", "Customer Service Clerk", "Alegra Keith.doc.txt"]
  </pre>
  
  <p>But when I compare <code>parts[0]</code> with <code>"231"</code>:</p>
  
  <pre><code>"231" == parts[0]
  </code></pre>
  
  <p>the above result is false,</p>
  
  <p>I'm confused, so could anybody tell me why?</p>