Java command line arguments



examples/java/CmdLineArgs.java
public class CmdLineArgs{
    public static void main(String[] args){
        System.out.println("The following command line arguments were passed:");
        for (int i=0; i < args.length; i++){
            System.out.println("arg[" + i + "]: " + args[i]);
        }
    }
}

javac CmdLineArgs.java
java CmdLineArgs --name "Foo Bar" --email foo@bar.com