This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Small Bug : In Var-Args Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Small Bug : In Var-Args" Watch "Small Bug : In Var-Args" New topic

Small Bug : In Var-Args

Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 392
In K&B book : p-47
"Basic syntax To declare a method using a var-arg parameter, you follow the
type with an ellipsis (...), a space, and then the name of the array that will
hold the parameters received."

The Space is not required.
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Check this thread.
I agree. Here's the link:
subject: Small Bug : In Var-Args
It's not a secret anymore!