class test {
public static void m1(int...x,double...y) {
/* some code here */
}
public static void main(String args[]){
m1();
m1(10,20,3.5);
m1(20,2.5,3.5,4.5);
}
}
Whenever we use a method, it takes only one variable, mostly at end of the method signature. Why does this happen?
Why we can't use more than one variable length argument? I am looking for the answer from the compiler's point of view.