Groovy web console

subscribe to the feed Subscribe
to this
site

Weiard Stringbuilder conversion

Published 3 weeks ago by Niels Harremoes
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def listWithStringBuilder = [new StringBuilder()]
assert listWithStringBuilder[0].getClass() ==  (listWithStringBuilder as Object[])[0].getClass()