In this book, you will find a number of text styles 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: "We mapped the learningneo4j package to the /learningneo4j URL."
A block of code is set as follows:
public class StringHacking {
@UserFunction
@Description("Returns the last word of a string")
public String getLastWord( @Name("aStr") String aStr){
if(aStr==null) return null;
else {
int pos = aStr.lastIndexOf(" ");
if(pos==-1) return aStr;
else return aStr.substring(pos+1);
}
}
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
MATCH (ln:LastName)--(p:Person)
RETURN ln, learningneo4j.randomCount(p.lastName) AS badcount
Any command-line input or output is written as follows:
mkdir data/ldap/environment -p
mkdir data/ldap/db -p
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "In order to download new modules, we will go to Files | Settings | Project Name | Project Interpreter."