Home Tutorialhelp Comment dif bwString.replace(ch,ch)&String.replace(str,str

 
 

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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.