📅  最后修改于: 2022-03-11 14:52:43.463000             🧑  作者: Mango
String phrase = "An_Apple_A_Day_Keeps_The_Doctor_Away";
System.out.println(phrase.replaceAll("_", " ");
// prints 'An Apple A Day Keeps The Doctor Away'