Looks good to me. I think the method could probably be static. Each ball would use the same process to return it's own bounds.
Sounds ok to me, without seeing the rest of the code.
1)Calling a...
Type: Posts; User: jps
Looks good to me. I think the method could probably be static. Each ball would use the same process to return it's own bounds.
Sounds ok to me, without seeing the rest of the code.
1)Calling a...
Sure you can
Ok, lets have a looksee one step at a time.
It seems to me you want a Rectangle for EACH ball, your method can only return ONE Rectangle. You would have to return BALLS.size() Rectangles to get...
public Rectangle getBallBounds()
{
for(int i = 0; i < BALLS.size(); i++)//BALLS.size() might as well just be 1....
{
//....because the first time...