Groovy web console

subscribe to the feed Subscribe
to this
site

hhhe

Published 4 months 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()