Recommended reading: Coding Horror: Rubber Duck Problem Solving
Type: Posts; User: KevinWorkman
Recommended reading: Coding Horror: Rubber Duck Problem Solving
That still is not correct. Aren't you testing this out as you go?
Also, did you really use Object as a class name?
That was exactly what copeg told you, to take a closer look at the intersection() method, which you were using incorrectly. Actually, I predict you'll have quite a few problems with that code.
You've been given help already, I suggest your reply with a little more gratitude.
The intersects() method takes an argument. You need to figure out what that argument should be. What it should be...