SimpleExample/assignment.txt 0. If you haven't done it: 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'. 1. Follow the instructions at the top of the HelloWorldMain.java file to compile and run it. 2. Introduce some typical errors into the program HelloWorldMain.java and recompile after each one, to see what the error messages look like. (After you see the error msg, change it back!) For instance: First try to run it like these: java HelloWordMain java HelloWorldMain.class It can't find the class with a main() to start the program. In HelloWorldMain.java -- a. change public class HelloWorldMain to public class HelloWorldmain b. change Bug aBug0, aBug1, aBug2; to Buf aBug0, aBug1, aBug2; // Bug to Buf c. change Bug aBug0, aBug1, aBug2; to Bug aBug0, aBug1, aBug2 // note no semicolon ; at the end! d. Change: System.out.printf( to System.out.printF( // note cap F e. Change aBug0.sayHello(); to aBug0.sayhello(); // note lowercase h 3. Compile and run the Main.java and Ant.java files. 4. Introduce some typical errors into the program HelloWorldMain.java and recompile after each one, to see what the error messages look like. (After you see the error msg, change it back!) For instance: a. 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). b. At the end of that same loop, remove the } . c. 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 -- d. In the first constructor, remove the closing } . e. For this method definition starting line: public double doSomething ( int i ) { - remove the double - change the double to void 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.