- 注册
- 2005-09-21
- 消息
- 8,913
- 荣誉分数
- 460
- 声望点数
- 0
1. Write a method for a class called BallPacker that prompts for three ints (one at a time) representing the dimensions of a box and a float that represents the radius of a ball. Then compute the number of balls that would fit in the box. Display the results in the Java console. Be sure to test your code with many different box and ball sizes. Assume that the balls are only stacked on top of each other neatly (shown bellow).