摘要: 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... 阅读全文
posted @ 2013-10-25 16:29 史蒂芬.王 阅读(228) 评论(0) 推荐(0) 编辑