Groovy web console

subscribe to the feed Subscribe
to this
site
Squiggle Not Needed (via #groovywebconsole)
tweet this snippet Tweet
this
script

Squiggle Not Needed

Published 5 months ago by Brendan with tags dollar squiggle unnecessary
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
class GotFields {
  int x
  int y
}

GotFields g = new GotFields(x: 5, y:6)

println "$g.x $g.y"