title: How to return string array to java JNI
body: <p>I want to return finalResult array to java. Any help Appreciated.  </p>
  
  <pre><code>extern "C"
  JNIEXPORT void JNICALL
  Java_com_testjniproject_MainActivity_AnalyseImageDisplay(JNIEnv *env, jobject instance, jlong sourceImageArray)
  {
      Mat &amp;srcInputImg = *(Mat*)sourceImageArray;
      vector&lt;tuple&lt;string, string, int&gt;&gt; result = AnalyseImage(srcInputImg);
      enter code here
      string finalResult[3];
      for (int i=0; i &lt; result.size(); i++)
      {
          cout &lt;&lt; get&lt;0&gt;(result[i]) &lt;&lt; " : " &lt;&lt; get&lt;1&gt;(result[i]) &lt;&lt; " With confidence " &lt;&lt; get&lt;2&gt;(result[i]) &lt;&lt; "%" &lt;&lt; endl;
          finalResult[i] = get&lt;1&gt;(result[i]);
      }
  }
  </code></pre>