public class Test {
public static void main(String[] args) {
String str = "doc\\test\\tes.java";
System.out.println(str);// print 'doc\test\tes.java'
String strtest = str.replaceAll("\\\\", "/");
System.out.println(strtest);// print 'doc/test/tes.java'
}
}
posted @
2007-09-29 10:15 weikj 阅读(174) |
评论 (0) |
编辑 收藏