We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
Can someone explain why this doesn't work ?
double[] xx;
xx=new double[0];
double x = Double.parseDouble("3.14151517786456");
xx=splice(xx,x,xx.length);
I got this error message cannot convert from Object to double[]. A way to fix it ? Thank you
Answers
splice() is returning an array of Objects, which can't implicitly be converted to a double[] (an array of doubles). In this case, you must cast to the right type:
https://processing.org/reference/splice_.html
It's because splice ... OK Thank you