You could start by taking a look at java.io.File
which has methods for listing files...
File#listFiles
which allows you to list ALL the files within the context of the givenFile
instanceFile#listFiles(FileFilter)
which allows you to filter the list as it's being created...
Or, if you're using Java 7+, you could take a look at the enhanced File I/O API