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