Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "A cursor need to be closed to free the resource the object holds by calling the close()
method."
A block of code is set as follows:
public void deleted(String pid) { System.out.println("Removing echo server with pid " + pid); EchoServer removed = echoServers.remove(pid); if (removed != null) { removed.stop(); } }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
</goals> </execution> <execution> <id>baseline</id> <phase>package</phase> <goals> <goal>baseline</goal> </goals> </execution> </executions> </plugin>
Any command-line input or output is written as follows:
$ mvn install $ mvn versions:set -DnewVersion=1.0.1 ... make changes to Java files ... $ mvn package
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Clicking on Reset (to scan the directory) followed by Finish will set up the baseline."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.