code: public static int get2DArrayXDim(final Object array2D) {
          int dimX = 0;
          if (Array.getLength(array2D) > 0) {
              dimX = Array.getLength(Array.get(array2D, 0));
          }
          return dimX;
      }
docs: Get the x dimension where x is array[y][x]
  
  @param array2D
  @return