Read the following to understand the differences between == operator and the .equals() method:
http://www.javaprogrammingforums.com/content/17-re-common-java-mistakes.html

For the operator...