您的位置:首页 > 其它

对得到的file路径“C:\storage\我的音乐”,以"\"进行分割

2012-10-20 11:31 316 查看
File file = new File("C:/storage/我的音乐");
if(!file.exists()) {
file.mkdirs();
}

String str = file.getPath();

String[] strs = str.split("\\\\");
for(String s : strs) {
System.out.println(s);
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐