Hi all,
I'm looking for a method like str.replace(char,char) but instead replaces only one instance of the value.
ie: String str = "java";
str = str.replace('a','x');
output > jxvx
What i'm looking for:
String str = "java";
str = str.SomeMethod('a','x');
output > jxva
Does anyone know if this exists without using StringBuffer???
-a5k
I'm looking for a method like str.replace(char,char) but instead replaces only one instance of the value.
ie: String str = "java";
str = str.replace('a','x');
output > jxvx
What i'm looking for:
String str = "java";
str = str.SomeMethod('a','x');
output > jxva
Does anyone know if this exists without using StringBuffer???
-a5k