How can I do variable-length argument lists?

John Mitchell

Well, there's no direct support for variable-length method argument lists in Java. However, you can simulate this yourself using whatever object container you prefer such as the ubiquitous java.util.Vector class or one of the newer collection classes.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact