Can you see why this if statement is not working correctly?
<p>When i run this the if statement always returns false and thus doesn't run the two lines i have there.  You can see in the above line i checked if the words are actually the same and they are identical. So is there something here that i am completely oblivious to or am i just screwed? If it matters i am using eclipse.  </p>

<pre><code>boolean wordHasElement = false;
for (int firstdimension = 0; firstdimension &lt;= wordnumber-1; firstdimension++){
    System.out.println("-"+ words[firstdimension][0] + "-" + linewords[linewordnumber]  + "-");
    if (words[firstdimension][0] == linewords[linewordnumber] ){
        System.out.println("Worked");
        wordHasElement = true;
    }
}
</code></pre>
