SimpleExample/assignment.txt 0. Create a directory in your dir space and copy the SimpleExample/*.java files into it. mkdir yourDirName cp /users/rlr/Courses/530/Src/SimpleExample/*.java yourDirName cd yourDirName where you put whatever you want for 'yourDirName'. Follow the instructions at the top of the Main.java file to compile and run it. 1. Introduce some typical errors into the program and recompile after each one, to see what the error messages look like. (After you see the error msg, change it back!) For instance: In Main.java -- a. change public class Main to public class main b. change Ant anAnt, anAnt1; to Amt anAnt, anAnt1; c. change Ant anAnt, anAnt1; to Ant anAnt, anAnt1 <- note no semicolon ; at the end! d. In the loop creating the ants, Change: for ( int i = 0; i < numberOfAnts; ++i ) { to for ( int i = 0; i < numberOfAnts; ++i ) (no { at the end of that line). e. At the end of that same loop, remove the } . f. Add this loop at just before the while loop: for ( Ant a : antList ) { a.setX( rng.nextInt( 63 ) ); a.setY( rng.nextInt( 63 ) ); } why doesn't this work? Fix it by changing Ant.java ! In Ant.java -- g. In the first constructor, remove the closing } . h. For this method definition starting line: public double doSomething ( int i ) { - remove the double - change the double to void i. in the doSomething method, on this line: j = (int) d; // tell java to convert the double d into an int remove the (int) . 2. Add a new class to the program: name: Chip Instance Variables: ID, x, y, density Create a couple of constructors. Create the setters/getters. Create a printSelf method, to print its IVs. Create a method incrementDensity( double d ) that causes the density to be increased by the value passed as the d parameter. Change the instructions at the top of Main.java on how to compile the program to include this one. Then compile it, and run it. (Presumably it will run the same, since so far you have just defined the new class, not used it.) 3. Add a new ArrayList to Main.java chipList to contain Chip objects. 4. Create 10 chips, add to that list. Assign densities and x,y in some interesting way. 5. Use a for-loop to send the printSelf() message to all the Chips on the list. 6. Use the incrementDensity(d) method to change the density of a selected set of the chips, e.g., the ones with odd IDs, with density < some value, etc. Print the list again after sending them all this message, to confirm it worked.