Home Segments Index Top Previous Next

Chapter 25:

How To Use Sorted Collections in Simulations

In Chapter 17, you learned about a mathematical formula that determines how fast rabbits multiply, and you examined an Integer method that embodies that formula.

Sometimes, however, individual behavior may be so complex so as to defy easy mathematical analysis. In such situations, you may choose to model the characteristics of the individuals that constitute a system so that you can simulate the events that determine system behavior. In this chapter, you learn how to model rabbit behavior to simulate growth in a rabbit population.