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.

SimpleVarargs.java 248B

123456789101112
  1. public class SimpleVarargs {
  2. public static void main(String[] argv) {
  3. callfoo("a","b","c","d","e");
  4. }
  5. public static void callfoo(Object... args) {
  6. for (int i = 0 ; i<args.length;i++) {
  7. System.err.println(args[i]);
  8. }
  9. }
  10. }