def colarray=[] def num def newRole = rolecol.split(\',\') def len = newRole.size()
the [] are there, because you are doing an implicit toString on the list. use colarray.join(',')
[]
toString
colarray.join(',')