FileDocCategorySizeDatePackage
Ls.javaAPI DocExample440Fri Oct 08 20:19:40 BST 1999None

Ls

public class Ls extends Object
Simple directory lister.
author
Ian Darwin, ian@darwinsys.com
version
$Id: Ls.java,v 1.2 1999/10/08 23:19:40 ian Exp $

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

		String[] dir = new java.io.File(".").list(); // Get list of names
		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