How to use static variables in Processing?

What about the static variable inside a function which is my main issue ?

How to use a static variable from inside a function ?