Can I pass an array as arguments to a method with variable arguments in Java?
Yes, a T… is only a syntactic sugar for a T[]. JLS 8.4.1 Format parameters The last formal parameter in a list is special; it may be a variable arity parameter, indicated by an elipsis following the type. If the last formal parameter is a variable arity parameter of type T, it is considered to … Read more