上層Java呼叫C/C++的函式
public native void 2DArrayInput(int[][] inputData); public native int[] returnArray(int[] inputData2);
二維int陣列傳值:
public final static int[][] inputData = { {0x0226,0x00} ,{0x0227,0x40} ,{0x0228,0x00} }; JniTest jnitest = new JniTest(); jnitest.2DArrayInput(inputData);