Skip to content

Instantly share code, notes, and snippets.

@sivajankan
Created November 18, 2015 19:56
Show Gist options
  • Save sivajankan/fde051a83a8bbbf45a05 to your computer and use it in GitHub Desktop.
Save sivajankan/fde051a83a8bbbf45a05 to your computer and use it in GitHub Desktop.
Start new Shell window
$ java bsh.Console # Starts bean console
$ java bsh.Interpreter // run as text-only on the command line
$ java bsh.Interpreter filename [ args ] // run script file
Trial:
$ java bsh.Interpreter
bsh % int add(int a, int b) { return a+b;}
bsh % print(add(1,2)); //3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment