Groovy web console

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

Squiggle Not Needed

Published 8 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"