Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “As you can see in the following, we can use the javap
command without any parameters.”
A block of code is set as follows:
public class CH1EX1 { public CH1EX1 { public static void main(java.lang.String[]); } }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
public class Example2 { public static void main(String[] args) { List<String> petNames = new LinkedList<>();
Any command-line input or output is written as follows:
$ cd src $ ls CH1EX1.java $
Tips or important notes
Appear like this.