String a = "yyyy";
I want to replace the second y with x;
But, if I type
a = a.replace(a,charAt(1),'x');
All four y will become x, pretty annoying!
How to replace a character in String only at a designated position
Post a Reply
Nothing to see here.
Java / Android Development
Very popular language used to create desktop applications, website applets, and Android apps.
|Bucky Roberts Administrator|