JNITestpublic class JNITest extends Object Simple JNI verification test. |
Constructors Summary |
---|
public JNITest()
|
Methods Summary |
---|
private native int | part1(int intArg, double doubleArg, java.lang.String stringArg, int[] arrayArg)
| private int | part2(double doubleArg, int fromArray, java.lang.String stringArg)
int result;
System.out.println(stringArg + " : " + (float) doubleArg + " : " +
fromArray);
result = part3(stringArg);
return result + 6;
| private static native int | part3(java.lang.String stringArg)
| public int | test(int intArg, double doubleArg, java.lang.String stringArg)
int[] intArray = { 42, 53, 65, 127 };
return part1(intArg, doubleArg, stringArg, intArray);
|
|