public class Solution {
public static int getBlankNum(String str)
public String replaceSpace(StringBuffer str) {
StringBuffer newstr= new StringBuffer();
if(str==null)
return null;
for(int i=0;i<str.length();i++){
if(str.charAt(i)==' '){
newstr.append('%');
newstr.append('2');
newstr.append('0');
}
else
newstr.append(str.charAt(i));
}
return newstr.toString();
}
}