why doesn't replaceAll work?# Java - 爪哇娇娃
m*r
1 楼
String foo = '\' + '\';
foo.replaceAll("\\\\", "\\");
would cause an indexOutOfBounds exception.... i don't understand.
foo.replaceAll("\\\\", "\\");
would cause an indexOutOfBounds exception.... i don't understand.