Groovy web console

subscribe to the feed Subscribe
to this
site

Use string value as variable name

Published 2 months ago by Vidal,Juan Jos�
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import groovy.transform.Field

@Field def adidas = 'reebok'
def yeezy = 'adidas'
print this[yeezy]