Examples
Try it on something real
Each of these is a whole query: paste it into ByteRunner and press F5. The output shown on each page is what it printed when it was run.
Kotlin
Run Kotlin code without a project
Run a few lines of Kotlin straight away: no Gradle, no main(), no project. A data class, some collection functions, and the results as tables.
Parse CSV in Kotlin and see it as a table
Read CSV into Kotlin data classes with split and destructuring, then group and total it. The rows and the totals show as tables, with no library and no project.
Benchmark Kotlin code, warmed up
Compare the speed of Kotlin code with Util.benchmark: each block is warmed up so the JIT has compiled it, then timed in batches, with the mean, its margin, allocation per call and a comparison.
Try a Maven library without a build filePro
Add a Maven Central dependency to a single Kotlin script with @file:DependsOn and use it straight away: no Gradle, no pom.xml, nothing to install.
Java
Run Java code without a class or main()
Run Java statements directly, with no class, no public static void main and no build: records, streams and Collectors.groupingBy, with the results as tables.
Test a Java regular expression
Try a Java regex against sample lines and see which match and what each named group captured, as a table. Uses java.util.regex.Pattern exactly as your code will.
Try java.time date formatting patterns
See what DateTimeFormatter patterns like yyyy-MM-dd, EEEE MMMM d and XXX produce, convert one moment between time zones, and measure a Period, in plain Java.