String filerootori=chooser.getSelectedFile()+"";
String[] filerootArray=filerootori.split("'\u005C'");
for(int i=1;i<filerootArray.length;i++)
{
fileroot+=filerootArray[i]+"/";
}
System.out.println(fileroot);
我想把读取的文件路径中的“\”全部改成“/”,这样怎么不行?
输出是空白。
然后用replaceAll(regax,String)也没用……,根本没变……