java截取文件名.后的字符串

string str = fileName.substring(fileName.lastIndexOf(".") + 1);
原文地址:https://www.cnblogs.com/zhujiabin/p/5688801.html