阅读背景:

在java中打印N维数组

来源:互联网 

I want a generic method to print all the elements of a multidimensional array. In the below code i am able to print all the elements of any multidimensional array which belongs to the parent Object class but not of any primitive types. Is it possible to print all elements of a multidimensional array of primitive type. One more doubt if int value can be hold in a Object type then why not int[] can be cast to Object[] but, String[] can be cast to Object[].I want a generic method to print all the elemen




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: