I'm trying to compare two strings a and b. When I inspect the variables in Eclipse I see the following:
When I do a comparison if (a == b), the if condition is never met. If I hard-code a="test", then the condition is met. What do I have to do so that the condition is met without hard-coding anything?
Thank you.
Code:
a
value=char[6]
[0]=t
[1]=e
[2]=s
[3]=t
[4]=
[5]=
b
value=char[4]
[0]=t
[1]=e
[2]=s
[3]=t
Thank you.