手撕代码全集(字符串)
字符串的空格替换为%20public static String replaceBlank(String str){ StringBuffer sb = new StringBuffer(); for(int i = 0; i < str.length(); i++){ if(str.charAt(i) == " "){ sb.ap...