Skip to content

Instantly share code, notes, and snippets.

@donlindsay
Created January 12, 2015 19:57
Show Gist options
  • Save donlindsay/1da587b5a0ad4b1b7484 to your computer and use it in GitHub Desktop.
Save donlindsay/1da587b5a0ad4b1b7484 to your computer and use it in GitHub Desktop.
java code block example
*** java code block
:PROPERTIES:
:DATE: 2011-07-19
:END:
#+begin_src java :classname myfirstjavaprog
class myfirstjavaprog
{
public static void main(String args[])
{
System.out.println("Hello World!");
}
}
#+end_src
#+RESULTS:
: Hello World!
@donlindsay
Copy link
Author

Typing C-c C-c within the code block results in evaluation of the code snippet printed after the #+RESULTS: tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment