Other than looping through each element in an array and setting each one to null, is there a native function in Java / processing to simply empty an array (or destroy it, to
If Array xco is not final then a simple reassignment would work:
xco
i.e.
xco = new Float[xco .length];
This assumes you need the Array xco to remain the same size. If that's not necessary then create an empty array:
xco= new Float[0];