You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VarArgs.java 267B

123456789101112131415
  1. package test4;
  2. public class VarArgs {
  3. public int test() {
  4. return goo(1, 2, 3) + goo(1, "a", "b", "c");
  5. }
  6. public int goo(int i, int... k) {
  7. return k.length;
  8. }
  9. public int goo(int i, String... k) {
  10. return k.length;
  11. }
  12. }