我想将字符串中的反斜杠更改为双反斜杠.
我有
String path = "C:\Program Files\Text.txt";
我想把它改成
"C:\\Program Files\\Text.txt"
java string
java ×1
string ×1