Java

Java is one of the most popular programming languages in use. In Teragrep, Java is a standalone interpreter.

To use Java in Teragrep’s editor, write %java at the start.

%java
public class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Prints the string to the console.
    }
}
Java example