Lubos Programming Blog

Lubos Blog about Programming (mainly Java) and Computers

Tech Tip: Using the Varargs Language Feature

Posted by lubosp on January 21, 2005

Tech Tip: Using the Varargs Language Feature

Have you ever needed to pass in many instances of the same object type to a method, but you don’t know at compile time how many instances there will be? Find out how the new varargs language feature makes it easy to handle situations like this.

[via java.sun.com]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: