title: How jni deliver a string array?
body: <p>How to deliver a string array?</p>
  
  <p>I post the code:</p>
  
  <p>xx.cpp</p>
  
  <pre><code>JNIEXPORT jstring JNICALL Hello_Native(JNIEnv *env, jobject obj,jstring string)
  {
      const char *str = env-&gt;GetStringUTFChars(string, 0);
      return env-&gt;NewStringUTF( "Hello from JNI !");
  }
  static JNINativeMethod gMethods[] = {
     {"JniHello",const_cast&lt;char*&gt;("(Ljava/lang/jsting)Ljava/lang/jsting;"),(void*)Hello_Native}
  </code></pre>
  
  <p>xx.java</p>
  
  <pre><code>public native static String JniHello(String text);
  </code></pre>
  
  <p>System always prompt it has the problem when declare <code>JniHello</code> in <code>gMethods</code> and the parameter is not right.</p>