Example

public class ClassA {
Strings; public void methodA {
String s2 = s.replaceAll(".", ",");
}

}
Solution s2 = s.replaceAll(".", ",") will cause every character in the string s to be replaced by a ','.