Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android java optional arguments

RetDataType NameFnc(int NamePsgVar, String... stringOpnPsgVar)
{
    if(stringOpnPsgVar.length == 0)  stringOpnPsgVar = DefaultValue; 

    // |* Code Todo *|
    return RetVar;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #java #optional #arguments
ADD COMMENT
Topic
Name
3+1 =