📌  相关文章
📜  替换字符串中所有出现的字符java代码示例

📅  最后修改于: 2022-03-11 14:52:43.463000             🧑  作者: Mango

代码示例1
String phrase = "An_Apple_A_Day_Keeps_The_Doctor_Away";
System.out.println(phrase.replaceAll("_", " ");
// prints 'An Apple A Day Keeps The Doctor Away'