2. #ghello? 3. 4. #ghello
5. Hello WorldOK
6. 7. 8. 9. 10. #1 @kazuchika 11. String#toURI()
12. GROOVY P.177 URI 13. Desktop.desktop.browse(URI)
Desktop#brouse(URI)
static Desktop getDesktop()
14. #2 @kiy0taka 15. SwingBuilder
16. GROOVY P.139 17. #3 @nobeans groovy:000> hello ===> null 18. propertyMissing(String)
19. methodMissing 20. http://groovy.codehaus.org/Using+methodMissing+and+propertyMissing 21. [h,e,l*2,o]
22.
23. java.util.ArrayList 24. [h,e,l*2,o]
25. assert a * 3 == aaa 26. * multiply(Number)
27. List#join()
assert [a,b,c].join() == abc assert [a,b,c].join(,) == a,b,c 28. println(String)
29. System.out.println
3 30. #4 @fumokmm groovy:000> Hello World ===> null 31. String#toURL()
32. URL#getText()
33. API 34. Groovy
35. Closure (P.71)
36. ->
37. def clos = {println it}
38. String#find( Pattern,Closure )
39. /hoge/ (P.67)
ClosureitArrayList
40. Groovy1.6 41. [33..43]
42. assert 'abcde'[2..4] == 'cde' 43. #5 @orange_clovergroovy:000> Hello World ===> null 44. Object.each(Closure)
45. CollectionObject 46. Closure
47. Object.each(){closure} 48. Object.each{closure} 49. 50. #6 @kyon_mm groovy:000> [echo] Hello World ===> org.apache.tools.ant.taskdefs.Echo@259 27275 51. AntBuilder
52. echo(hello)
Gant (P.233) 53. #7 @bluepapa32 54. SwingBuilder
55. 56. #8 @irof groovy:000> ( ) Hello, world! ===> null 57. JsonSlurper#parseText
58.
59. [k1:"Hello", k2:"world"] 60. Object#with(Closure)
61. Closurewith 62. VB.NET With-End With 63. GString
64.
GStringwithMap
65. #9 @mike_neck groovy:000> () Hello World ===> null 66. String#execute()
67. Mac say 68. #10 @kimukou_26 groovy:000> () Hello world ===> null 69. Java
70. new URL(String)
URL#getText Groovy 71. #11 @tyuki39 groovy:000> () Hello World ===> [Ljava.lang.reflect.Field;@29cb2 795 72.
Field[].each {} 73. it[0..4] + ' ' + it[5..-1]
74. -1 75. #12 @nightmare_tim groovy:000> () Hello World! ===> null 76. for (P.108)
77. List
78. a[4] = 9 79. assert a == [1,2,3,null,9]
80. #13 @backpaper0 PS> () hello world PS> 81.
82. Windows 83. #14 @uehaj groovy:000> () Hello, World ===> null 84.
85. getText()
86. Javadoc 87. #15 @nagai_masato 88. Object#each(Closure)
89. String 90. each 1Closure
91. String#toInteger()
92. #16 @toby55kij groovy:000> () Hello World ===> {Hello=World} 93. JsonBuilder
94. BuilderMap 95. Closure 96. Map
97. Map.each(Closure)
Closure2
98. #17 @nobusue groovy:000> () Hello World! ===> null 99. JavaScript
100. JavaGroovy 101. #18 @primnum groovy:000> () Hello World ===> 0..10 102. Object#eachWithIndex(Closure)
groovy:000> 'abc'.eachWithIndex{a, b->println "val:$a, index:$b"} val:a, index:0 val:b, index:1 val:c, index:2 ===> abc 103. #19 @torazuka groovy:000> () HELLO, WORLD!! ===> null 104. String#getAt
105. 106. getAt assert "Oh! Well, Lord!"[1,5,6,7,11] == "hello" 107. #20 @bikisuke groovy> Hello World JUnit 4 Runner, Tests: 1, Failures: 0, Time: 114 108. Spock 1.8 @Grab('org.spockframework:spock-core:0.5-groovy-1.8') @GrabExclude('org.codehaus.groovy:groovy-all') class g extends spock.lang.Specification{ def"h"(){expect:println'Hello World'}} 109. @Grab
110. Grape (P.194) 111.
112. Spock (P.241)
113. 114. JUnit 115. JUnit
116. #21 @masanobuimai groovy> GroovyConsoleHello.World 117. String#capitalize()
118. 119. 120. 121. 122. main
package hello class World {} println World.class.name.capitalize() 123. #22 @lemur314 groovy:000> () Hello World ===> null 124. String#reverse()
125. #23 touchez_du_bois groovy:000> () println "Hallo, Welt!" ===> null 126. SimpleTemplateEngine
P.262
127. #24 @tyama groovy> ()hello world! 128. DSL
( );; ( )
129. ={a,b->...}
130. ( , ( ))
131. #25 @kanemu groovy:000>() hello,world! ===> {a=h, b=e, c=l, d=l, e=o, f=,, g=w, h=o, i=r, j=l, k=d, l=!} 132. Map#sort()
133. Map#sort(Closure)
Map#sort(Comparator)
134. #26 @osimajp 135. Object#each(Closure)
136. Object (P.183)
137. collect, find, findAll 138. #27 @fumokmm groovy:000> () Hello World ===> null 139. 140. 141. #28 @kazuchikagroovy:000> (;) Thanks for joining #ghello! ===> null 142. new Event(name:"#ghello")
143. 144. ... 145. ... 146. ... 147. ... 148. ... 149. #ghello
Top Related