Groovy web console

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

hhhe

Published 1 month ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
enum MyColors{BLUE, RED, WHITE }

class MyCoin {   
MyColors myColor 
    public MyCoin(){
    }
}

println new MyCoin().myColor?.name()