文件名工具类 MoFileNameUtil
MoFileNameUtil
public class MoFileNameUtil {
//不包含点号
public static String getFileSufix(String fileName){
int index = fileName.lastIndexOf(".");
return index != -1 ? fileName.substring(index + 1): "";
}
}