Groovy web console

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

Dupa

Published 3 weeks ago by Dupa with tags Dupa
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
class Dupa{
int q=0;

void dupa(){
  this.q++;;
}
}


Dupa dupa = new Dupa();
println dupa.q;

dupa.dupa();

println dupa.q;