I have this question about the performance of a method in Java with a variable number of parameters.
Say I have the following 2 alternatives:
public
It will be the same as if you declared
isIn(int i, int[] values) {
However there will be some some small overhead in packaging the variables up when calling your method