Errata

This page contains details of any minor corrections we have found in the book.

The text details the fact that we are working with the OR operator, the double pip || symbol, however the code snippet contains the AND && operator. The logical outcomes displayed are correct and the reader should replace the instacnes of && with || so it reads as follows:

The double pipe[1] || OR logical operator will return a true value if either the left or the right-hand side are true. For the operator to return false, both the left and right-hand values must be false:
Boolean bothTrue = true || true; //true
Boolean rightTrue = false || true; //true
Boolean leftTrue = true || false; //true
Boolean bothFalse = false || false; //false

The code block for the final version of the LearningSFDevAPI class is missing the request header we have just discussed in the block on page 221. An update to the way in which security is handled on this site also requires an additional header to be added to have messages correctly populate through to the site.

The updated code for the send message function should look as follows: