Chapter 12. Configuring Program Options

Modern Java applications are typically quite flexible. Much of this flexibility takes the form of options and parameters that can be given to a program when it first starts up. In a typical example, a program may need to be told which of several related tasks it should perform and will need to be given information relevant to that task. This in turn means that the program must be able to process this information in order to know what to do. Some options, such as the major task to perform, are internal switches. Other options require a value, such as the URL of a database. Still others may require multiple options, such as a list of files to be processed.

Closely related to this issue is that a well-written ...

Get Apache Jakarta and Beyond: A Java Programmer’s Introduction now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.