1、文件路径的分割:
String filePath="c:\\image\\product\\001.png";String[] aa=filePath.split(\\\\);
2、n 个空格分割:
String str = " To be or nor to be , that is question";
String str [] = str.split(" +");
1、文件路径的分割:
String filePath="c:\\image\\product\\001.png";String[] aa=filePath.split(\\\\);
2、n 个空格分割:
String str = " To be or nor to be , that is question";
String str [] = str.split(" +");