In this book, you will find a number of styles of text that distinguish among different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: " In the first case, you have not much control about the details, for example, a Pattern
object will be created for each call of the facade methods delegating to the Pattern
class "
A block of code is set as follows:
// system imports // Your custom imports: import java.util.regex.*; // system variables // Your custom variables: Pattern tuplePattern = Pattern.compile("\((\d+),\s*(\d+)\)"); // expression start // Enter your code here: if (c_edge != null) { Matcher m = tuplePattern.matcher(c_edge); if (m.matches()) { out_edge = m.replaceFirst("($2, $1)"); } else { out_edge = "NA"; } } else { out_edge = null; } // expression end
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
// system imports // Your custom imports: import java.util.regex.*; // system variables // Your custom variables: Pattern tuplePattern = Pattern.compile("\((\d+),\s*(\d+)\)"); // expression start // Enter your code here: if (c_edge != null) { Matcher m = tuplePattern.matcher(c_edge); if (m.matches()) { out_edge = m.replaceFirst("($2, $1)"); } else { out_edge = "NA"; } } else { out_edge = null; } // expression end
Any command-line input or output is written as follows:
$ tar –xvzf knime_2.8.0.linux.gtk.x86_64.tar.gz –C /path/to/extract
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: "Eclipse's main window is the workbench".
3.145.179.85