Senin, 31 Maret 2014

The example List all jpg files in given directoty:

 private File[] getJpgFiles(File f){
File[] files = f.listFiles(new FilenameFilter(){

@Override
public boolean accept(File dir, String filename) {
return filename.toLowerCase().endsWith(".jpg");
}});

return files;
}


Related Posts by Categories

0 komentar:

Posting Komentar