title: Simplest way to pass float[][] to C++ via JNI
body: <p>In my Java code I have a 2D float array <code>float[x][4] floatArray</code>. Here <code>x</code> can be between 1  and 25. I have to pass this 2D float array to a <code>C++</code> method via <code>JNI</code>. My <code>JNI</code> method is</p>
  
  <pre><code>jboolean MyJNIMethod(JNIEnv * env, jobject obj, jobjectArray myArray)
  {
      //how to convert this myArray to something that can be safely passed to C++ method below
  }
  </code></pre>
  
  <p>Inside <code>MyJNIMethod</code> I have to call a <code>C++</code> method and pass 2D float array taken from Java to this method </p>
  
  <pre><code>bool MyCplusPlusMethod(float coordinates[][4])
      {
  
      }
  </code></pre>
  
  <p>I am having a hard time in properly converting jobject to float[][] due to lack of native development knowledge. Can anyone tell me the simplest and safest possible way? Thanks</p>