Watch This Video
http://docs.groovy-lang.org/latest/html/gapi/index.html?groovy/lang/Range
//app.groovy
Person p= new Person("Dan","vega","danvega@gmail.com")
println p.toString()
//Person.groocy
import groovy.transform.ToString
import groovy.transform.TupleConstructor
@ToString
@TupleConstructor
class Person{
String first
String last
String email
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.