equals() is a method applied to objects:
if ( pass.equals( "reason" ) )
Type: Posts; User: GregBrannon
equals() is a method applied to objects:
if ( pass.equals( "reason" ) )
if(pass=="reason")
Do not use the operator '==' to compare Strings. Use the equals() method.
Note: Next to NPEs that have varied causes, the error above is the most common seen in a forum...