Groovy web console

subscribe to the feed Subscribe
to this
site

Test Array varargs

Published 3 months ago by Alex with tags varargs
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
new Cl1().getWithVarargs("name", "arg1", "arg2")


class Cl1 {

  public getWithVarargs(String name, Object[] arguments) {
    println "name = ${name}, arguments = ${arguments}"
  }

}