class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		foo("one", "two", "three");
		foo(new String[] { "four", "five", "six"});
	}
	
	private static void foo(String... args) {
		for (String s : args) {
			System.out.println(s);
		}
	}
}