Using DynamicJava

DynamicJava is a scripting language based on the Java language. Unlike Java, it is not necessary to create a class and main method in which to put your code. Instead, you write statements as if they are already inside a method of a class.

An example of a DynamicJava script, as it appears in the Script Component Editor, is shown below: