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

string str = fileName.substring(fileName.lastIndexOf(".") + 1);

 

posted @ 2016-07-20 16:23  星辰之力  阅读(1971)  评论(0编辑  收藏  举报