Why the code is working with .equals() method and why not with == operator. Please explain lengthily or provide some links. Thanks.