Question: Create a JNI program based on the condition below: - Java file requests user to enter a number to determine the size of an array.

Create a JNI program based on the condition below: - Java file requests user to enter a number to determine the size of an array. - The number is passed into the first native method - In the first native method: - Input: int number (size of the array) - User has to key in his/her favorite country, and the country name is stored into a string array - Output: String array - Second native method: - Input: String array from the first native array - It sorts the country name in the string array ascendingly - Output: Sorted string array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
