View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

Declare a parameter

To declare a parameter to a method use:

(type name1, type name2, ...)


The name you give is in scope until the end of the method. Remeber that
each object method is also implicitly passed the object the method was invoked
on with a name of this.

Example:

(int count)

or

(String title, int count)


Link to this Page