Hello,
I have a Java array defined already e.g.
float[] values = new float[3];
I would like to do something like this further on in the code:
values = {0.1f, 0.2f, 0.3f};
But that gives me a compile error. Is there a nicer way to define multiple values at once, rather than doing this?:
values[0] = 0.1f;
values[1] = 0.2f;
values[2] = 0.3f;
Thanks!