User Tools

Site Tools


playground:grauniad

This is an old revision of the document!


Heading One

Heading One two

Heading One three

Heading One Four

Heading One Five

Heading One Six

Heading One Seven

= Heading One Eight =

/**
 * The HelloWorldApp class implements an application that
 * simply displays "Hello World!" to the standard output.
 */
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); //Display the string.
    }
}

$VARNAME:DEF_VAL

ArgumentsResultNotation
--

Description

Defines an input variable. Input variables are created at script start and assigned either the default value, or a value specified in the editor.

Examples

$amtToEmit:10 
$interval:15 
CurrentCoords <-amtToEmit SetCreeper 
<-interval Delay

<!โ€” Start of Page โ€”>

->!

ArgumentsResultNotation
String, item s1 n1 โ€“

Description

Pops a name of a variable and an item from the stack and stores the item in the variable.

Examples

# Build a string by concatenating "xy" and "z". 
# Store the number 123 in the variable named "xyz". 
"xy" "z" concat 123 ->! 
<-xyz trace
playground/grauniad.1358058275.txt.gz ยท Last modified: 2025/02/14 14:56 (external edit)