摘要:
1 class Sample { 2 def names = ["anna", "annie", "tommy", "bobby", "doggy"]; 3 4 public static void main(def args) { 5 //Loop 6 for (i in 0..5) { 7 println "Hello, World!" 8 } 9 10 //Closure11 def sample = new Sample();12 //Operat... 阅读全文