#include <stdio.h>
#include "Package_MyTester.h"
jstring Java_Package_MyTester_NMethod
(JNIEnv *env, jobject obj, jint first, jint second) {
jint result_i = first * second;
jstring result;
int x = 0;
for(x=0;x<5;x++) {
printf("%d",x);
}
return result;
}
该程序将两个 jints 相乘。结果必须在 jstring 中。有没有办法将 jint 转换为 jstring ?