当前位置: 技术问答>java相关
怎样替换中文空格?
来源: 互联网 发布时间:2015-04-06
本文导语: public static String replaceChar(String s, char c, String s1) { if(s == null || s.length() == 0) return s; StringBuffer stringbuffer = new StringBuffer(); byte byte0 = 32; ...
public static String replaceChar(String s, char c, String s1)
{
if(s == null || s.length() == 0)
return s;
StringBuffer stringbuffer = new StringBuffer();
byte byte0 = 32;
for(int i = 0; i
{
if(s == null || s.length() == 0)
return s;
StringBuffer stringbuffer = new StringBuffer();
byte byte0 = 32;
for(int i = 0; i