[Solved] Processing – “unexpected token: void” [closed]


You do have a syntax error. The Class keyword should be class with a lower-case c. You should also not have parenthesis after the class name.

Also, see my answer here. The Processing editor doesn’t like when you only have a class definition without Processing functions like setup() and draw().

Side note: you might want to try approaching problems like this with a “what syntax error am I not seeing?” mentality instead of saying “I have no syntax errors” – the compiler doesn’t lie, so saying you have no syntax mistakes comes off as a little bit presumptuous.

solved Processing – “unexpected token: void” [closed]