title: Multiple types on a Java multi-dimensional array
body: <p>From what I know, only one type of object/literal can be stored on a multi-dimensional Java array. </p>
  
  <p>so for instance, on a 2-dim'l array a[][], I can not store
   a Type-1 array on a[0] and Type-2 array on a[1] unless there's some polymorphic relationship between Type-1 &amp; Type-2 and I put it into use there.  </p>
  
  <p>I'm looking to verify that there's no way to get around this. so, I cannot somehow put an int array on a[0], a char array on a[1]-- Java arrays are single-type.</p>
  
  <p>I'm aware that I can declare 2 parallel arrays-- one int[] and one char[] and that solves it.  </p>
  
  <p>Thanks in advance.</p>
  
  <p>//=====================</p>
  
  <p>Edit: The good old object class solves it-- as the useful answers below pointed out. Thank you for your input. </p>