I'm not sure how I should deserialize multi-dimensional arrays in Java. I'm given something like:
<var object="[[I"> <_0 object="[I"> <_0 object="java.lang.Integer">1</_0> <_1 object="java.lang.Integer">2</_1> </_0> <_1 object="[I"> <_0 object="java.lang.Integer">3</_0> <_1 object="java.lang.Integer">4</_1> </_1> </var>
Where the object attribute on each node describes what object it is. If it is an array of a primitive type, it will begin with an array of '[', where each one represents a count in its depth. I.e:
type int[][] = [[I
type int = [i
The problem is, how to I create an array of variable depth? Sorry if it isn't clear, I'm really confused by this problem :S