I have a piece of code that returns an Object array. Each slice of the array then contains data that was initially a two dimensional array of doubles. I can't change this piece of code as it's part a Matlab thing (see link below).
http://www.mathworks.com/help/mps/java/code-multiple-outputs-for-java-client.html
My question is how do I convert each slice of the Object[] back into a double[][] within Java?
Here's some sample code
Object[] test = getDailyLog(1,20050101,20060101);
Object a = test[1];
System.out.println(a);
From this I get the output
[[D@17b90c55
System.out.println(a.getClass().getName());, to show the class of the objects. Then one can figure out how to extract the values.[[prefix above suggests you have a two-dimensional array, and maybe theDmeansdouble(been a long time since I've looked at the defaulttoStringfor an array).)