1 public class Solution { 2 public String replaceSpace(StringBuffer str) { 3 return str.toString().replace(" ", "%20"); 4 } 5 }
替换空格
原文:https://www.cnblogs.com/hello-lijj/p/9537620.html