fitgoodies-core/src/main/java/de/cologneintelligence/fitgoodies/file/FileSelector.java
public File getLastFile() throws FileNotFoundException {
		File[] files = directory.listFiles(filter);
		if (files == null || files.length == 0) {
			throw new FileNotFoundException();
		}

		return files[files.length - 1];
	}
public File getLastFile() throws FileNotFoundException {
		File[] files = directory.listFiles(filter);
		if (files == null || files.length == 0) {
			throw new FileNotFoundException();
		}

		return files[files.length - 1];
	}
public File getLastFile ( ) throws FileNotFoundException { File [ ] files = directory . listFiles ( filter ) ; if ( files == null || files . length == 0 ) { throw new FileNotFoundException ( ) ; } return files [ files . length - 1 ] ; }
Returns the last matching file.

@return the matching file or <code>null</code> if no file matches
@throws FileNotFoundException thrown, if the directory does not exist
Returns the last matching file .