Groovy web console

subscribe to the feed Subscribe
to this
site

Vargs - array

Published 2 months ago by Laurent Vaills
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def call(String... filePaths) {
  filePaths.each { println "${it}"; }
}

call("foo1", "foo2", "foo3")
def myArray = [ "foo1", "foo2", "foo3" ]
call(myArray as String[])