// Your name: public class Assign2 { // A debug variable - set it to true when debugging so // you can print out stuff to screen during execution. public static boolean debug = true; // This method takes in a landscape (and its size M), and // a parameter called "fillDensity" and creates a landscape of // trees, by randomly generating trees in various cells. // IMPORTANT: DO NOT MODIFY THIS CODE. public static void createRandomForest (int[][] landscapeData, int M, double fillDensity, double type1Frac) { // Check fillDensity validity: if ( (fillDensity <= 0) || (fillDensity > 1) ) { System.out.println ("Assign1.createRandomForest(): fillDensity out of range: " + fillDensity); } // Initially, clear the landscape: for (int i=0; i