2011-02-24 26 views

回答

3

在Java中它被稱爲可變參數。

public void foo(Object object, Object... objects) { 
    // the 'objects' argument is an array here. 
} 
1

你幾乎擁有了,

public void foo(Object object1, Object... objects){} 
相關問題