Just as C-x C-e
evaluates ELisp code, this ±10min Youtube video shows how C-x C-j
evaluates inline Java code to build a gallery app.
This is done with Emacs slurping text from any buffer and barfing it into the standard Java repl, run in a background process. These phases are glued together using the repl-driven-development.el package.