Here you can find the source of getFileList(String path)
public static File[] getFileList(String path)
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileFilter; public class Main { public static File[] getFileList(String path) { File[] fileList = new File(path).listFiles(new FileFilter() { @Override/*from ww w. j av a2s .c o m*/ public boolean accept(File pathname) { String str = pathname.getName().toLowerCase(); if (str.endsWith(".nes") || str.endsWith(".zip")) return true; else return false; } }); return fileList; } }