Class Method and Private Method

In Processing the sketch code is wrapped up as a top level class so any class declared inside it will be an inner class the easy solution here is to declare the class static like this

static class Example
{

note there is no ‘()’ in a class declaration!