9. $ cat input.txt
That that is is that that is
not is not is that it it is
$ java WordCount input.txt
1: [That]
2: [not]
2: [it]
4: [that]
6: [is]
Slide # 8 JGGUG G*Workshop 17th / 2011.6.17
26. turn left then right p.p1
// turn(left).then(right)
paint wall with red, green and yellow
// paint(wall).with(red, green).and(yellow)
take 3 cookies
// take(3).cookies
// take(3).getCookies()
given { } when { } then { }
// given({}).when({}).then({})
http://groovy.codehaus.org/Groovy+1.8+release+notes
Slide # 18 JGGUG G*Workshop 17th / 2011.6.17
35. @TupleConstructor class MyClass {
class MyClass { def a
def a def b
def b def c
def c MyClass(a,b,c) {
} this.a=a
} this.b=b
this.c=c
}
}
Slide # 26 JGGUG G*Workshop 17th / 2011.6.17
http://canoo.com/blog/2010/09/20/log-groovys-new-and-extensible-logging-conveniences/