可能重複:
Java array argument 「declaration」 syntax
What is the ellipsis for in this method signature?作爲一個java函數的參數,做什麼?
我在那有一個字符串...字符串作爲參數的函數絆倒了。這有什麼意義?我假設它意味着任意數量的字符串參數,但不是List的要點?
function doStuff(String... strings) {
//Code
}
我很感激在應用程序中它的目的和用法的解釋。謝謝
嘗試[此](http://stackoverflow.com/questions/5504260/what-does-mean-in-java)問題,或[本](HTTP:/ /stackoverflow.com/questions/4618930/what-does-mean-in-java)或[this](http://stackoverflow.com/questions/4211099/java-array-argument-declaration-syntax) – Shaded 2011-04-27 19:19:44
這個問題是剛剛問今天*和*關閉作爲重複。 – Jeremy 2011-04-27 19:21:23
Java中沒有關鍵字「函數」。你的意思是'public [static] [void | int | String | Object | ...]? – 2011-04-27 19:32:58