Michel ten Voorde

Greenhorn
+ Follow
since Dec 30, 2010
Michel likes ...
Android Opera Linux
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michel ten Voorde

That's great news! Currently working my way through the Programmer I study guide. I have to say it's an excellent piece of work, very readable and well written.
Question to Scott and Jeanne: will there be a OCP 11 Programmer Practice Tests book, next to the study guides (just like OCA/OCP 8)?
Grab yourself K&B's latest book: SCJP6 Practice Exams. It did a great job for me, even making me doubt whether I would have passed the exam without it!
There are two problems with your code, and one of them is trivial. Hint: line 19.

Furthermore, try to understand what happens inside the if-branch (at line 9). Something is missing.
11 years ago
Well done, congratulations!
11 years ago
Well done, congratulations!
11 years ago
Well done, congratulations!
11 years ago
Rob's code was meant to replace only line 15 and 16 of your code. That way, it should give run and return the output you'd expect.
11 years ago
Well done, congratulations!
11 years ago
Well done, congratulations!
11 years ago
Well done, congratulations!
11 years ago
Well done, congratulations!
11 years ago
I think nirjari's question is whether extending the Thread class implies having to implement the run() method. This is not the case, your extended class inherits the run() method which is already in the Thread class. I think you confuse the 2 ways of defining a thread:

1) Extend the Thread class and override the run() method.
2) Implement the Runnable interface and implement the run() method.
11 years ago
Most will advice Head First Java, but personally, I really don't like the Head First series. I'd advice Ivar Horton's Beginning Java.
11 years ago