Practice pieces


Loops: rabbits

Ok, so here's the simplest way of doing this:

Rabbits.java


 

Can you finish this off by:

1) Changing the maths to a logistic map with a ratio of 2?

2) Adding some foxes?

Note that to do these, you'll have to think about combining integer and double mathematics. Watch your casting.