private static void burnForest(int iterations) { for (int i = 0; i < iterations; i++) { if (iterations > 1) { System.out.println("Iteration " + (i + 1) + " of " + iterations + ":"); } forest.plant(); do { forest.nextFrame(); if (verbose) { System.out.println(forest); } } while (forest.isBurning()); if (!verbose) { System.out.println(forest); } } }