For example, Java\'s own String.format() supports a variable number of arguments.
String.format()
String.format(\"Hello %s! ABC %d!\", \"World\", 123); //=>
The following will create a variable length set of arguments of the type of string:
print(String arg1, String... arg2)
You can then refer to arg2 as an array of Strings. This is a new feature in Java 5.
arg2