Learning objectives

 

In this unit you will learn:

-   how to solve certain board problems using a nested loop

-   about the structure of a for loop and how to apply it to achieve repeated execution

-   the RGB color model and how to use arbitrary colors with a Board object

 

In this Unit we explore problems that are more naturally expressed using nested loops, for which a loop is defined inside of another loop.  We well then consider another common type of loop in Java, the for loop, which can make our code more compact.  Finally, we will look at how to use arbitrary colors in Java and how these can be incorporated into Board objects to develop creative programs.