Homework 8?

This is a comprehensive review. The solutions to these problems are
available, check your answers against the solutions.

Review Problems

1.) Create an ArrayList of Strings. Add the Strings "A", "B", and "C"
to the list.
Print out the third element of the list.
Extra Credit : Write a loop to print out each element of the list.

2.) Create a class called Apple. Apple should have an int in it
called counter that starts at 0.
Next, create a method in apple called printCounter that is void.
The method should print the value of the Apple's counter when called.
Create an apple and test the method.

Difficult Problems

1.) Create a function called createArray that creates
an array of floats full of random numbers and returns it.
The size of the array should be an int parameter to the function.

2.) Create a class called Circle with floats x and y. It should
also have ints r, g, and b.
Next create your setup and draw functions.
Create a global Circle and set its position and r, g, b values
to be random.
Draw the Circle in the draw function. Dont forget to set the fill
to be the Circle's r g and b values.
For extra credit, allow the user to move the Circle using
w a s and d.

3.) Create an array of 5 floats. Write a function that takes
the array in as a parameter and returns the sum.
Don't forget to test your code in the setup!