• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Sybex 816, Chapter 8, page 454 errata

 
Greenhorn
Posts: 10
Eclipse IDE C++ Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chapter 8, page 454, there is:

it should be:

Object args... -> Object... args
 
Marshal
Posts: 71629
312
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are correct; the JLS shows the ellipsis before the parameter name.
 
Bartender
Posts: 3665
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The funny thing that "old school' syntax allows square brackets after type



after variable



or after both (it will be 2 dimension array in that case)

 
Campbell Ritchie
Marshal
Posts: 71629
312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is what come from copying your syntax from C/C++.
 
author & internet detective
Posts: 40354
819
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct. The ... needs to be before the parameter name. Added to errata
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic