Originally posted by Sam Francis:
is it not convinent top have the option for allt he argumennts instead of the last?
Explain to me how these would work:
int whatDoesThisDo(String... x, String... y) ...
int orThis(int... x, Integer... y) ...
int orEvenThis(double... x, Float... y) ...
i.e., what are the values of x and y if I say:
whatDoesThisDo("a", "b", "c");
orThis(1, 2, 3, 4, 5);
orEvenThis(1, 2, 3, 4, 5);
Yes, you could introduce a bunch of rules to make this work -- but in general, Java tries to avoid having a bunch of complicated rules.