Comment

Krishna
dif bwString.replace(ch,ch)&String.replace(str,str,
September 21, 2008 at 6:38 PM

String aStr = "Hello";
if (aStr.replace('H','H') == "Hello")

When we execute this particular above statement.This Returns True.

if (aStr.replace("H","H") == "Hello")
When Yu Know I execute this Its not returning true,its the other way its false.

HELP IF ANY ONE CAN....




View All Comments | View Tutorial
Related Tutorial and Articles

Advertisements

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles