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

The lines like this are not correct.

That line, and all the others like it, is assigning a value, needs to be inside a function, probably setup.
a1 is not declared, probably “String a1;”