I’ve created a REALLY simple code snippet to show what I’m trying to do. I need to add an array that I have defined into an ArrayList. I need an ArrayList as I don’t know how many arrays I will end up with. This will Obvs be in a loop but I just wanted to show the problem I’m having
When I run the following
float[] stuff = {1,2,3};
ArrayList <float[]> list = new ArrayList<float[]>();
list.add(stuff);
printArray(list);
I am hoping to see 1,2,3 in the first entry for the ArrayList. instead I just see a java lang object.
Found some references for addAll but that did get me any further.