private static
ArrayList
for (E o : a) {
if(o != null)
al.add(o);
}
return al;
}
but I wanted to write something that would recursively return an ArrayList for multi-dimensional arrays. Which I would have compile, but would receive various runtime issues with the values not being loaded into the return value.