How to copy an array

Thanks for the prompt reply, GoToLoop. You can see, perhaps, my confusion having read the following on the Processing reference page final:

Keyword used to state that a value, class, or method can’t be changed. If the final keyword is used to define a variable, the variable can’t be changed within the program.

The example code given there won’t even compile. Should the page be updated/expanded/clarified?
[ time passes ]
I see that the behaviour is supposed to different for arrays than for primitives.

Remaining questions:

  • Why did you choose to use final is this example?
  • What are the benefits?
  • What are the drawbacks, if any?
  • And, please, why use the intermediary assignment of (a = arr)?

Peace,
sb9k