FileDocCategorySizeDatePackage
FNFilter.javaAPI DocExample903Wed Mar 10 21:33:36 GMT 2004None

FNFilter

public class FNFilter extends Object
FNFilter - Ls directory lister modified to use FilenameFilter
author
Ian Darwin
version
$Id: FNFilter.java,v 1.3 2004/03/11 03:33:35 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argh_my_aching_fingers)

		// Generate the selective list, with a one-use File object.
		String[] dir = new java.io.File(".").list(new OnlyJava());
		java.util.Arrays.sort(dir);		// Sort it (Data Structuring chapter))
		for (int i=0; i<dir.length; i++)
			System.out.println(dir[i]);	// Print the list