java - Proper terminology for Object... args -


i'm working in java , typical way specify multiple args method is:

public static void somemethod(string[] args) 

but, i've seen way few times, in standard java library. don't know how refer in conversation, , googling not of due characters being used.

public static void somemethod(object... args) 

i know allows string bunch or arguments method without knowing ahead of time how many there might be, such as:

somemethod(string arg1, string arg2, string arg3, ... etc 

how refer type of method signature setup? think it's great , convenient , want explain others, @ lack of how refer this. thank you.

this way express arguments called varargs, , introduced in java 5.
can read more them here.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -