斜杠

tring sx="http://blog.csdn.net/yuan8080/article/details/6052827";
sx=sx.replaceAll("/","-");
System.out.println(sx);

String sx1="D:\\Java\\eclipse2\\plugins";
sx1=sx1.replaceAll("\\\\", "-");
System.out.println(sx1);
posted on 2014-08-08 15:33  _故乡的原风景  阅读(218)  评论(0编辑  收藏  举报