hello people,
I have a doubt in trim() function. I executed the following codelet.
String s="ram".trim();
String k="ram ".trim();
if(s==k)
System.out.println("yes");
else
System.out.println("no");
I got "no" output..
if I use equals() function in if checking then I get "yes" output.Please let me know the things happen here.