@ -9,5 +9,8 @@ class HelloWorld {
public static void main(String[] args) {
String output = HelloWorld.hello("fanruan");
System.out.println(output);
int r = MyMath.add(50, 32);
System.out.println(r);
}
@ -0,0 +1,9 @@
/**
* @author richie
* @version 10.0
* Created by richie on 2019-08-01
*/
public class MyMath {
public static native int add(int a, int b);