Recent Changes - Search:

Java Tutorial

edit SideBar

CommandLineArguments

These pages make up the course notes for my Java programming course (run at Dallam, Milnthorpe, Cumbria). Hopefully they also make a useful self-learning tutorial.

If you have ever run a command from the command line (DOS prompt, shell prompt, etc.) you have most probably used command line arguments, e.g. something like

dir \windows (windows)

or

ls /home (Linux, Unix)

In the windows example dir is the command (a program) and \windows is the "argument" to the command. In other words a command line argument is a piece of information passed to a program when it is executed.

See CommandLineJava for more information about running Java from the command line.

 

Creative Commons License

This work is Copyright Chris Hunter 2007, you may use it for non-commercial purposes
under the Creative Commons license Creative Commons Attribution-Noncommercial-Share Alike.

Edit - History - Print - Recent Changes - Search
Page last modified on May 17, 2007, at 01:57 PM