[ask] how to use an array of double in Java Processing

No! You’re right, being pedantic, that local variables must be initialized before being accessed (so yes, that can be delayed as long as the compiler can prove that a variable has been initialized before access). Doesn’t apply in this case.

I’m not stopping the use of absolute verbs with regards to language / compiler rules, etc. because that would be patently absurd!