package strings; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; /** Indent - prepend leading spaces * @author Ian F. Darwin, http://www.darwinsys.com/ * @version $Id: Indent.java,v 1.5 2006/04/11 22:58:40 ian Exp $ */ public class Indent { /** the default number of spaces. */ static int nSpaces = 10; public static void main(String[] av) { Indent c = new Indent(); switch(av.length) { case 0: c.process(new BufferedReader( new InputStreamReader(System.in))); break; default: for (int i=0; i