BSc Software Engineering (Hons), OCP 6, OCP 7, OCP 8
https://twitter.com/jaymoid
Henno Vermeulen wrote:In Chapter 14 exercise 2 the line
calls the method
of java.util.List. It does not call
to remove the element 2 as one might expect, but instead removes the element at index 2, which is 6.
Henno Vermeulen wrote:In Exercise 8 of chapter 14 the line
gives the caller of the getHighScores() method a read-only view of the private ArrayList that is intended to be guarded by the lock.
Nicolas Lepage wrote:Chapter 8 Self Test Question 2 (p 466) :
The value "en_CA" is passed to the Locale constructor as a language code.
R Svendsen wrote:Chapter 8, self test question 3 - Kindle edition
Another approach is to use apostrophes instead of quotation marks.
This will prevent the substitution.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |