method call

Syntax

methodCallExpression;

where:

Description

This statement is used to call a method, wheter it is called on a variable or on a class.

As the value returned by the method is ignored here (not assigned to any variable), the called method is supposed to have a side effect. If not, then you should rather consider the assignment statement.

Examples

// calls the script doSomething(), or the method doSomething() if a script doSomething is not found
myClass.doSomething("hello", true);

// Changes a system property (static method setProperty() of the class java.lang.System)
System.setProperty("myProperty", "something");