获取不带后缀名的文件名
public static String getFileNameWithoutSuffix(File file){
//忽略判断
String fileName = file.getName();
return fileName.substring(0, fileName.lastIndexOf("."));
}
如果对你有帮助,请一定要帮忙点赞好评,给予创作的动力…
获取不带后缀名的文件名
public static String getFileNameWithoutSuffix(File file){
//忽略判断
String fileName = file.getName();
return fileName.substring(0, fileName.lastIndexOf("."));
}
如果对你有帮助,请一定要帮忙点赞好评,给予创作的动力…