public String extension (File f) {
        String fileName = f.getName();
        int indexFile = fileName.lastIndexOf(DOT_INDEX);
        if (indexFile >0 && indexFile<fileName.length()) {
            return fileName.substring(indexFile+1);
        } else {
            return "";
        }
        
    }