Its not adding when b is empty
System.out.print("I");public void act()
{
addedToWorld(getWorld());
}
protected void add(World w)
{
int i=0; while(getOneIntersectingObject(null)!=null && i++<m)
{
setLocation((int)(Math.random()*w.getWidth()), (int)(Math.random()*w.getHeight()));
System.ou.println("5161");
}
if(i>=m)
{
w.removeObject(this);
}
}public void act()
{
addedToWorld(getWorld());
}public void act()
{
addedToWorld(getWorld());
}