Originally posted by Peter Chase:
Java does not have multi-dimensional arrays. It only has single-dimensional arrays. However, the element type of a single-dimensional array can be an array, allowing the illusion of multi-dimensional arrays.
For how to access Java arrays from C++, you should read the appropriate section of the JNI specification.
Ah, so if I have an ObjectArray passed to my JNI, and I ask for size, it'll be giving me the "dimensions"?
For example, if I'm passed:
and i ask for the size like:
jsize will be 3? Can i pass a
jobjectArray to the method GetArrayLength?