turn java code into a package

This commit is contained in:
dankeyy 2023-03-11 19:03:29 +02:00
parent 3991c334f7
commit 31195b405c
No known key found for this signature in database
GPG key ID: 9EBEF7DB1A70533D
4 changed files with 14 additions and 7 deletions

View file

@ -0,0 +1,12 @@
package javaSource;
public class HelloJNI {
static {
System.loadLibrary("demo");
}
public native String sayHello(int num);
public static void main(String[] args) {
System.out.println(new HelloJNI().sayHello(420));
}
}