I have a Queue class set up that holds different arrays that have been passed into the Queue.
there is a array in the Queue class called data that holds all the arrays that have been passed in.
I’m trying to set up a function called trace that traces out the arrays and there elements.
example:
data=[["element 1","element 2","element 3"],["element 1","element 2"],["element 1"]];
I want this to trace out like
output:
["element 1","element 2","element 3"],["element 1","element 2"],["element 1"]
function I wrote
public function trace():String{
for(var i =0; i < data.length; i++){
var elements="["+data*+"]";
}
return elements;
}
This function will only give me the last array in the array
Anyone know how I can get this trace to work