Hi,
I think I've spotted some typos in Chapter 9
P 456, last line : the file package should not have an "s"
... the java.nio.files.Paths factory ...
P 457, first line : Paths has no getPath method, but get methods. This typo is made several times through this chapter.
P 459, Path.getPath() should be Path
s.
get()
P 463, I'm not sure about the explanation about the PrintWriter being the cause of the call to the toString() method. I would say the
string concatenation "+" triggers it first.
P 470, the toRealPath method does not have a Path argument, it's an instance method.
P 489, in the bottom note, it should be "that can be
stored in a int" instead of stopped.
P 500 and 570, question 12. I tested answer C and although it compiles, it throws an IllegalArgumentExeption: Missing scheme exception. So I think it should be a correct answer.
Also as noted by Mihaela Hetea in another
thread, answer G use a Paths.getPath method which doesn't exists so it should be a correct answer as well. The answer explanation for D and G talks about optional varargs values, which are nowhere to be found.
Thanks