I have a string (say)
int t=5;
I want to replace the identifier 't' in above string with some other String say "abc". using the replaceAll() or replace() methods of String in java replaces char 't' in int as well. so the output that i get is
"inabc abc=5;"
I want to replace the identifier only. please help me out. Thank you.
Refactor->Rename...String String = "foo";?int i = 1; {int i = 2; i++}Whichishould be renamed?