All pastes #1837490 Raw Edit

Mine

public text v1 · immutable
#1837490 ·published 2010-03-13 17:04 UTC
rendered paste body
/**
	A class that prints to the screen a list of arguments passed to the program on the command line.
*/
public class EchoParameters
{
	/**
		Contains the main method.
		@param args used for command-line arguments
	*/
	public static void main(String[] args)
	{
		// Prints to the screen the String objects referenced by the command-line arguments.
		for (int i = 0; i < args.length; i++)
			System.out.print(args[i] + " ");
		
		// Prints to the screen the length of the args array.
		System.out.println("\nThe length of the args array is: " + args.length);
	}
}