I have the following code
String rplaceString="John = Max and Jing => Sira then nothing";
String replaced=rplaceString.replace("=", "==").replace("=>", "=>");
System.out.println("REPLACE STRINF==>>>>>>>>"+replaced);
Expected Output String Like this:
String expectedString="John == Max and Jing => Sira then nothing";
If I do above method, Output Looks Like:
REPLACE STRINF==>>>>>>>>John == Max and Jing ==> Sira then nothing
So, How can replace above string in expected string.
Edit: Change String Like this: John =Max and Jing => Sira then nothing
or
John= Max and Jing =>Sira then nothing
or
John=Max and Jing => Sira then nothing
John == Max and Jing => Sira then nothing