CS111 Lab 2 -- Spring 2000

Today's agenda:

 


EXERCISE 1 -- Java Execution Model

 

EXERCISE 2 -- Welcome to ChecksWorld!!!

What picture does ChecksSimple.java produce?

Click here for the answer

Go to the download directory on nike, and download the lab2_programs folder to your desktop.

 

Task 1 -- Drawing a pattern using Methods

Rewrite ChecksSimple.java using a method (modify the code in ChecksMethod.java).

 

Task 2 -- Drawing a checkerboard using Methods

Modify the Checksboard.java file in the lab2_programs folder to solve the problem.


Task 3 -- Drawing a more complex checkerboard (using more Methods...)

 

Modify BigChecksboard.java to solve the problem: