(1)
it compares request.getParameter("drpState") to "AZ"
(2)
it compares licensesData.toString() to "AZ"
(3)
it compares licensesData.getDrpState().toString() to "AZ"
In your case,
Pick one syntax you think right for you and you are good to go :)
courtesy: actonwang (guru) link: http://www.experts-exchange.com/Programming/Languages/Java/J2EE/JSP/Q_21622460.html