public class testVararg{
private static void method(int... i){
System.out.println("in method1(int... i)");
}
private static void method(int[] i){
System.out.println("in method(int[] i)");
}
public static void main(
String[] args){
int[] a = {12,53,543,24,324,456,24};
method(2,3,4,5,1);
method(a);
}
}
-----------
So, if I want to invoke the method() with the "different arguments"(I think the int array reference variable "a" is different from "2,3,4,5,1".)What can I do?