@Ankur:
java XYZ ankur
why is the answer only false and not ankur false?
in a Boolean expression (correct me if i'm wrong) the left side is evaluated first, so what you are actually saying is:
(str[0]+" "+s[0]) == str[0]
Or: is "ankur ankur" = "ankur" ? Which is only ONE Answer...
if you want to have it correctly evaluated, you need to change
your code as below:
Dave