The boxbounce method should have a parameter that specifies


Write a new method named boxBounce. This method draws a rectangle (the "box") on screen and one or more balls inside the box. For the balls, do not use BouncingBall, but create a new class BoxBall that moves around inside the box, bouncing off the walls of the box so that the ball always stays inside. The initial position and speed of the ball should be random. The boxBounce method should have a parameter that specifies how many balls are in the box.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The boxbounce method should have a parameter that specifies
Reference No:- TGS02169498

Expected delivery within 24 Hours