Example:
public class PrintArgs { public static void main(String[] args) { // args is an array of String... // args[i] points to i-th `argument' of the command line } } For example: UNIX>> java PrintArgs a b c args[0] = "a" args[1] = "b" args[2] = "c" |