Try JBang
Below is an embedded editor where you can write Java code using JBang directives, click run and see it execute.
Note:
This JBang try page is relying on a free public Binder service (MyBinder) and is subject to usage limits and temporary availability issues. For more details, see the Binder user guidelines.
Use a dedicated IDE if these constraints does not work for you.
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS com.github.lalyos:jfiglet:0.0.8
import com.github.lalyos.jfiglet.FigletFont;
IO.println(FigletFont.convertOneLine("Hello JBang"));
You can also open a full interactive development environment.
🚀 JBang powered Jupyter Environment
Interactive development environment with rich output and data visualization. Uses MyBinder.
Experience JBang in a full Jupyter notebook environment with:
- Run .java, .jsh, and more using JBang
- Interactive code execution
- Rich output and visualizations
- Multiple files
- Use your own github or gist