update README (#237)
This commit is contained in:
11
examples/functions/Java/func.java
vendored
Normal file
11
examples/functions/Java/func.java
vendored
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user