I've just acknowledged dot notation for method declaration with multiple arguments
like this:
public function getURLs(URL... urls){
for(int i = 0; i < urls.length; i++){
// walk through array of arguments
}
}
And using like this
getURLs(url1, url2, url3);
where those method arguments are converted implicitly into URL[] urls
- Did I understand its behavior properly?
- Where is documentation to this syntax?
- From which version of JRE (J2ME,J2SE,Dalvik) is this supported?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…