How do I convert a Groovy String collection to a Java String Array?
To be correct, def data = ["a","b","c"]
it is a List, not an array.
Just try casting like this:
def data = ["a","b","c"] as String[]
To be correct, def data = ["a","b","c"]
it is a List, not an array.
Just try casting like this:
def data = ["a","b","c"] as String[]