FileDocCategorySizeDatePackage
IntArray.javaAPI DocExample352Tue Dec 12 18:58:26 GMT 2000None

IntArray.java

class IntArray {
  private native int sumArray(int arr[]);
  public static void main(String args[]) {
    IntArray p = new IntArray();
    int arr[] = new int [10];
    for (int i = 0; i < 10; i++)
      arr[i] = i;
    int sum = p.sumArray(arr);
    System.out.println("sum = " + sum);
  }
  static {
    System.loadLibrary("MyImpOfIntArray");
  }
}