Groovy web console

subscribe to the feed Subscribe
to this
site

Class

Published 2 months ago by stretch
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
class Person {

String first
String last

void greet(){
println "$first $last"

}
}

Person p = new Person()
p.first = "Me"
p.last = "You"

p.greet()