How to use static variables in Processing?

You add 1 to a. What is the value of a? You declared it, but didn’t initialize it, as the error says. Did you want a to be = 0?

final int a = 0;

1 Like