Skip to content

Instantly share code, notes, and snippets.

@hute37
Last active April 1, 2025 10:43
Show Gist options
  • Save hute37/b012265bb27c5011a6e1f6e6dd140147 to your computer and use it in GitHub Desktop.
Save hute37/b012265bb27c5011a6e1f6e6dd140147 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<project name="java" default="main" basedir=".">
<target name="main">
<script language="javascript">
<![CDATA[
with(new JavaImporter(java.lang, java.io)){
var fun = function(a,b){
System.out.println(a+b);
};
fun(1,2);
}
]]>
</script>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment