update README (#237)

This commit is contained in:
Minghe
2019-08-10 13:39:55 +08:00
committed by GitHub
parent 2f238e9ce0
commit d1191c2c85
6 changed files with 107 additions and 78 deletions

11
examples/functions/Java/func.java vendored Normal file
View File

@@ -0,0 +1,11 @@
package fx;
import org.json.JSONObject;
public class Fx {
public int handle(JSONObject input) {
String a = input.get("a").toString();
String b = input.get("b").toString();
return Integer.parseInt(a) + Integer.parseInt(b);
}
}