FileDocCategorySizeDatePackage
EchoArgv.javaAPI DocExample374Sat Nov 25 12:54:12 GMT 2000None

EchoArgv.java

/**
 * Simple echo/print client -- print command line arguments (argv) back
 * to the standard oubput.
 *
 */
public class EchoArgv {
	public static void main(String[] args) {
		new EchoArgv().func(args);
	}
	private void func(String args[]) {
		for (int i=0; i<args.length; i++) {
			System.out.print(args[i] + " ");
		}
		System.out.println("");		// end with newline
	}
}