Run Groovy 4 online — dynamic JVM language, browser-hosted.
Groovy is a dynamic, optionally-typed language on the JVM — Grails, Gradle build scripts, Jenkins pipelines. It is Java-source-compatible and reads like a script.
ls-judge runs Groovy 4.x on a supported JVM inside a Firecracker microVM.
Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.
def n = System.in.newReader().readLine().trim().toInteger(); println(n * 2)
21
42