Skip to content

Instantly share code, notes, and snippets.

@johnmay
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save johnmay/281f98de465df2e02760 to your computer and use it in GitHub Desktop.

Select an option

Save johnmay/281f98de465df2e02760 to your computer and use it in GitHub Desktop.
Hello World - no dot.
// imports can be inlined but excluded for readability
// import javax.script.SimpleScriptContext;
// import java.io.PrintWriter;
public class Main {
public static void main(String[] args) {
new SimpleScriptContext() {{
new PrintWriter(writer) {{
println("Hello World!");
flush();
}};
}};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment