How to solve: Dangling meta character '?' near index 0
807589Sep 1 2008 — edited Sep 1 2008When I use String.replaceAll() function to replace "?" appearing in string by " " like this:
String s = "How are you?";
s.replaceAll("?", " ");
I got the error like this: Dangling meta character '?' near index 0 ?
Could anyone could help me to overcome this error?
Thanks,
Ringo