3.1. A Simple Native Method3.1.1. C Prototype for Implementing the Native Method3.1.2. Native Method Arguments3.1.3. Mapping of Types3.2. Accessing Strings3.2.1. Converting to Native Strings3.2.2. Freeing Native String Resources3.2.3. Constructing New Strings3.2.4. Other JNI String Functions3.2.5. New JNI String Functions in Java 2 SDK Release 1.23.2.6. Summary of JNI String Functions3.2.7. Choosing among the String Functions3.3. Accessing Arrays3.3.1. Accessing Arrays in C3.3.2. Accessing Arrays of Primitive Types3.3.3. Summary of JNI Primitive Array Functions3.3.4. Choosing among the Primitive Array Functions3.3.5. Accessing Arrays of Objects