Example
public
class
ClassA {
String
s;
public void
methodA {
String s2 = s.replaceAll(
"."
,
","
);
}
}
Solution
s2 = s.replaceAll(
"."
,
","
) will cause every character in the string s to be replaced by a ','.