By convention, we generally show Unix-style filenames and program
command lines. For users of Microsoft Windows, we show the first few
examples for both platforms and explain how to convert between them.
When we show command lines, they are prefaced by a prompt named for
the machine on which the command is running. The prompt is in
constant width
font, the command that you type is
in constant width bold
, and any output from
the command is shown in constant width
font. To
run a command to find the version of Java used on the machine named
“piccolo,” we’d
show a command like this:
piccolo% java -version
java version "1.3.1"
The JXTA Shell is also a command processor; its prompt looks like this:
JXTA>
Examples within the shell follow these same font conventions.
- Italic
Used for emphasis and to signify the first use of a term. Italic is also used for commands, email addresses, URLs, FTP sites, file and directory names, and newsgroups.
-
Constant width
Used in all Java code and generally for anything that you would type literally when programming, including keywords, data types, constants, method names, variables, class names, prompts, and interface names. Constant width is also used for program output.
-
Constant width italic
Used for the names of function arguments and generally as a placeholder to indicate an item that should be replaced with an actual value in your program.
-
Constant width bold
Used for text that is typed in code examples by the user.
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.