Preview:
Script:

class HelloWorld
{
        public static void main(String args[])
    {
        System.out.println("Hello World!");
    }
}


Saved as HelloWorld.java

Executing it: 

module load java 
javac HelloWorld.java
java HelloWorld 
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter