Syntax of a method call
To call a method belonging to an imported class, use the same syntax
that you would use in Java. However, in addition, you must also enclose
a method call in dollar signs ($), just as you would a variable. Examples:
$new FileInputStream('myFileName')$
$fis.read()$
An immediate string value (such as 'Elm Street'
,
or 'myFileName'
in the first example above) passed as a
parameter to a method must be enclosed in single quotes, as usual
(see In the advanced macro format, rules for representation of strings, etc.).