Created
March 28, 2019 19:54
-
-
Save mikehearn/37db30f5350a679600a7ab0b8a03bc44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.plan99.nodejs.NodeJS; | |
public class Demo { | |
public static void main(String[] args) { | |
int result = NodeJS.runJS(() -> | |
NodeJS.eval("return 2 + 3 + 4").asInt() | |
); | |
System.out.println(result); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment