If there are two methods
public void foo(Something... things){}
public void foo(Something thing){}
And the following call with a single argument is made
foo(something);
Which of the above methods will be called? Does the order the above methods are declared in matter?
The reason I would have such method is to implement a for each loop in the varargs method which calls the single arguments method in the loop.