Java multiple arguments dot notation - Varargs

前端 未结 2 1573
北恋
北恋 2020-12-13 01:44

I\'ve just acknowledged dot notation for method declaration with multiple arguments
like this:

public function getURLs(URL... urls){
    for(int i = 0; i         


        
2条回答
  •  不思量自难忘°
    2020-12-13 02:24

    The syntax was introduced in Java 5 and is called varargs:

    http://download.oracle.com/javase/1,5.0/docs/guide/language/varargs.html

提交回复
热议问题