Let's see the following code snippet in Java.
package common;
final public class Main
{
private static void show(Object... args) //<--Here it is...
{
for(int i=0;i<args.length;i++)
{
System.out.println(args[i]);
}
}
public static void main(String[] args)
{
show(1, 2, 3, 4, 5, 6, 7, 8, 9);
}
}
The above code in Java works well and displays numbers starting from 1 to 9 through the only loop on the console. The only question here is the meaning of (Object... args) in the above code.