Error on my Processing GUI code for Arduino , I need some help

You are correct!

I often use simple examples to explore how the code is working:

What needs to be done to correct this?
Think about the solution before looking at the code.
Take a look at code (Arduino and Processing) and consider how to proceed.

Give it some thought.

:)