method(1);  // This works -
void method(int... x) { }
void method(int x) { }  // - this method is called
If I add a varargs parameter to the second method, I get a "reference to method is ambiguous" compilation error:
method(1);  // This now fails
void method(int... x) { }
void method(int x, String... y) { }  // adding String... y causes a problem.
As the String... y argument(s) can be left "blank", why doesn't Java still pick that method? Thanks, and apologies if there is a closely matching explanation on SO; I did look for one.
 
     
    