public String getExtension(File file)
{
int startIndex = file.getName().lastIndexOf(46) + 1;
int endIndex = file.getName().length();
return file.getName().substring(startIndex, endIndex);
}
全站熱搜
public String getExtension(File file)
{
int startIndex = file.getName().lastIndexOf(46) + 1;
int endIndex = file.getName().length();
return file.getName().substring(startIndex, endIndex);
}
留言列表