Create a JNI program based on the condition below:
- Java file requests the 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
- The user has to key in his/her favorite country, and the country name is stored in a string array
- Output String array
Second native method:
- ‘Input: Swing array from the first native array
- ‘It sorts the country name in the string array ascendingly
- Output: Sorted string array
Third native method:
- ‘Input: Suing array
- Java’s main function invokes the first and second native methods and displays the ‘content of the sorted array through the third native method.
- ‘Bonus will be given if the student provides an additional feature that is attractive and useful.
Get Help By Expert
Are you struggling with an essay assignment? Assignmenthelper.my is the online resource you need! Our assignment writing experts are knowledgeable and experienced in providing online essay help, ensuring that all your needs are met. Our team of educated professionals is available at any time to offer quality assistance for any type of paper. For superior writing help, rely on our experts!
Answer Preview
Need the complete answer?