Is there any way in java, to create a method, which is expecting two different varargs? I know, with the same object kind it isn\'t possible because the compiler does\'nt kn
Only one vararg, sorry. But using asList() makes it almost as convenient:
public void myMethod(List args1, List args2) { ... } ----------- import static java.util.Arrays.asList; myMethod(asList(1,2,3), asList(4,5,6));