This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Method declaration syntax Object... os Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Method declaration syntax Object... os" Watch "Method declaration syntax Object... os" New topic
Author

Method declaration syntax Object... os

John El
Greenhorn

Joined: Jun 10, 2008
Posts: 8
Can some one point me to som documentation on the '...' in this declarattiomn?

public static boolean areAnyOfTheseNull((Object... os)

I can see what it does, but I'm curios to know more.
thanks
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

See Varargs to start with. For more detailed information, search the web for "java varargs."


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
John El
Greenhorn

Joined: Jun 10, 2008
Posts: 8
Perfect, thanks!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Method declaration syntax Object... os