>>560
こうだよ?

String A = "\\";
String B = A.replaceAll("\\\\", "\\\\\\\\");
System.out.println(A + " : " + B);

\の数を間違えないようにね