6. def name='World' def list = ["Hello", " ", "World"] println "Hello $name!" list.each{ print it } class Greet { def name Greet(who) { name = who[0].toUpperCase() +who[1..-1] } def salute() { println "Hello $name!" } } def g = new Greet('world') // create object g.salute() 7. import java.util.Date; } return this.black; public Integer getColorId() { } public class Color { return this.colorId; publ
![多治見IT勉強会 Groovy Grails](https://cdn-ak-scissors.b.st-hatena.com/image/square/5874972ccd61b583db5d81e1b227c366a2964a4f/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Ftajimiit20101014-101014081200-phpapp01-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)