public String getExtension(File file)
    {
        int startIndex = file.getName().lastIndexOf(46) + 1;
        int endIndex = file.getName().length();
        return  file.getName().substring(startIndex, endIndex);
    }

arrow
arrow
    全站熱搜

    戮克 發表在 痞客邦 留言(0) 人氣()