Hi all,
I know " String ".trim is used to remove the blank spaces but when i use the following string compare its shows some strange result
if(" String ".trim() == "String")
System.out.println("Equal");
else
System.out.println("Not Equal");
It produces the result of not equal. How it produces the result like this can any one explain me.
thanks in advance