SyntaxFix
Write A Post
Hire A Developer
Questions
You can use arguments with default values.
def someMethod(def mandatory,def optional=null){}
if argument "optional" not exist, it turns to "null".