There is a great website Codingbat that has basic Java programming exercises. As Processing is, essentially, Java, this site may be useful for practicing what you are learning in class. By now, you have enough knowledge to do the Array-2 exercises.

(In the function definitions, you will see the word public. Just ignore it! It’s a feature of Java that we do not have in Processing. Otherwise, all your Processing knowledge should work just fine.)