mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-18 17:49:47 +00:00
reorganize, simplify build, multiple methods WIP
This commit is contained in:
parent
1dd46c985f
commit
35560efc0a
10 changed files with 182 additions and 217 deletions
15
examples/jvm-interop/javaSource/Demo.java
Normal file
15
examples/jvm-interop/javaSource/Demo.java
Normal file
|
@ -0,0 +1,15 @@
|
|||
package javaSource;
|
||||
|
||||
public class Demo {
|
||||
static {
|
||||
System.loadLibrary("interop");
|
||||
}
|
||||
public static native String sayHello(String num);
|
||||
// public static native int[] mularr(int[] arr);
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(sayHello("Brendan"));
|
||||
// int[] arr = {10, 20, 30, 40};
|
||||
// System.out.println(mularr(arr));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue