There is one type we have not talked about yet: arrays. Arrays have a specific place in JNI like in Java. They have their proper types and their proper API, although Java arrays are also objects at their root. Let’s improve the Store project by letting users enter a set of values simultaneously in an entry. Then, this set is going to be communicated to the native backend in a Java array which is then going to be stored as a classic C array.
Project Store_Part3-3 can be used as a starting point for this part. The resulting project is provided with this book under the name Store_Part3-4.