Added..
1. Always use equals method for string comprision.
2. use hard coded value on left side of equals method.
added javadoc