posted 17 years ago
int[]b2 = ((int[][])o1)[0];
remember o1 is an object.
so you can't call explicity like this o1[0]. // wrong
we should tell the compiler that
explicity that the refrence o1 is holding is pointing to 2D int array.
(int[][])o1 // this will do that
next out of 2D int array if want to fetch 1-D array.
((int[][])o1)[0] , ((int[][])o1)[1] ..... ((int[][])o1)[rowCount-1]
[ August 18, 2007: Message edited by: Srinivasan thoyyeti ]
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)