Have you tried debugging the code by adding printlns to show how the contents of the variable changes as it is set and what its value is when it is used?
Type: Posts; User: Norm
Have you tried debugging the code by adding printlns to show how the contents of the variable changes as it is set and what its value is when it is used?
here a is a String
When comparing Strings use the equals method. The == operator is for primitives.