I want to create a program, in which I can enter a directory location and one or more extensions, and where the result will show all the files in the specified directory with the specified extension(s). I want to run this via a GUI or via the command-line (e.g. "java programname -ext <file> <path>") Does anyone know how I can accomplish this easyly via Java. Is there a method within Java for this kind of directory and file look-ups?