Can any one help me with a code for bouncing a ball


// instance field int vSpeed; // to track the speed of the ball // in act method vSpeed++; // applying gravity setLoation(getX(), getY()+vSpeed); // moving vertically // check for collision/bounce (above and below -- hint: mind sign of 'vSpeed')