Hello,
I have an Object,x, which contains an Object array within it.
I do the following:
Object[] y = (Object[]) x;
This extracts the Object array, y.
Within this object array there are 2
String arrays & 1 double array.
This double array has a single element.
I then try the following
Object[] z = (Object[]) y[2];//where y[2] is the double array
I get the following error: java.lang.ClassCastException: [D
Can anybody advise how I can cast this double array to an Object array. I have already tried using the Wrapper class without joy.
Regards,
Fintan.