Array problem
in
Programming Questions
•
2 years ago
HI
I don't understand why my value keep in 0...
I'm new in processing and I have a basic problem with 2d array.
my code:
float[][] pointsArray;
void setup()
{pointsArray= new float[4][4];
float[][] pointsArray = {{0, 1, 2, 3},{3, 2, 1, 0},{3, 5, 6, 1},{3, 8, 3, 4}};}void draw(){print(pointsArray[1][1]);}
I don't understand why my value keep in 0...
thank your for your futur Help
1