This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!

pablo santamarta esteban

+ Follow
since Feb 23, 2015
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by pablo santamarta esteban

First of all, congrats!

I really like this thread as i was looking for something like this, talking about how is the hole process! I'm thinking about starting studying the certification, but i'm not sure if i'm ready to take it!

What i'm still wondering is if you need to code anything in the assignment part. Is it necessary? Or you have just to think and send how the solution is going to be and that's all?

Thanks in advance.
Chapter 9 I/O and NIO page 515

At the bottom of the page, in the source code sample, inside the overriding visitFile method:

if (file.getFileName().endsWith(".class"))

It is intended to filter all .class files and remove them, isn't it?

endsWith(String other) method from Path interface API says:
"On UNIX for example, the path "foo/bar" ends with "foo/bar" and "bar". It does not end with "r" or "/bar". Note that trailing separators are not taken into account, and so invoking this method on the Path"foo/bar" with the String "bar/" returns true."

Should be:
if (file.getFileName().toString().endsWith(".class"))
At the beginning, second paragraph says:

'Finally, you need to know that -for top-level classes- the abstract modifier can never be combined with the static modifier. We'll cover static method later in this objective, but for now just remember that the following would be illegal:
abstract static void doStuff();'

The phrase in bold should be removed? As top-level classes are not allowed to be marked as static and it is actually talking about methods.