上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 47 下一页

2015年10月6日

摘要: def x=2def y=3if(x == y){ log.info "equal"}else{ log.info "not equal" // print out not equal}TestService s1 = new TestService()TestService s2 = ne... 阅读全文
posted @ 2015-10-06 21:10 张缤分 阅读(183) 评论(0) 推荐(0)
摘要: TestService s = new TestService(log,context,testRunner)s.xyz()class TestService{ def log def context def testRunner public TestService(log,context,te... 阅读全文
posted @ 2015-10-06 20:56 张缤分 阅读(193) 评论(0) 推荐(0)
摘要: Bank.log = logBank b1 = new Bank()b1.name = "BOA"b1.minbalance = 100b1.city="London"Bank b2 = new Bank()b2.name = "HSBC"b2.minbalance = 100b2.city="LA... 阅读全文
posted @ 2015-10-06 19:54 张缤分 阅读(202) 评论(0) 推荐(0)
摘要: Employee.log=logEmployee e1 = new Employee()log.info e1.add(1,2,3,4)// optional parameters in groovylog.info e1.add(2,3)log.info e1.add(2,3,10)class E... 阅读全文
posted @ 2015-10-06 19:33 张缤分 阅读(233) 评论(0) 推荐(0)
摘要: Employee.log=logEmployee e1 = new Employee()Employee e2 = new Employee()e1.name = "A"e1.salary = 100e2.name = "B"e2.salary = 200e1.printName()e2.print... 阅读全文
posted @ 2015-10-06 19:28 张缤分 阅读(177) 评论(0) 推荐(0)
摘要: log.info "starting"// we use class to create objects of a classPlanet p1 = new Planet()Planet p2 = new Planet()//Planet.name = "Pluto" illegalPlanet... 阅读全文
posted @ 2015-10-06 17:46 张缤分 阅读(271) 评论(0) 推荐(0)
摘要: log.info "starting"// we use class to create objects of a classPlanet p1 = new Planet()Planet p2 = new Planet()Planet p3 = new Planet()//Planet.name ... 阅读全文
posted @ 2015-10-06 16:30 张缤分 阅读(186) 评论(0) 推荐(0)
摘要: log.info "starting"// we use class to create objects of a classPlanet p1 = new Planet()Planet p2 = new Planet()Planet p3 = new Planet()p1.name = "ear... 阅读全文
posted @ 2015-10-06 16:23 张缤分 阅读(209) 评论(0) 推荐(0)
摘要: http://www.groovy-lang.org/ 阅读全文
posted @ 2015-10-06 16:02 张缤分 阅读(124) 评论(0) 推荐(0)

2015年9月25日

摘要: In order to make the codes looks unified and make it easy to understand, it's better to use the same formatter for our code, the xml is the standard f 阅读全文
posted @ 2015-09-25 15:16 张缤分 阅读(275) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 47 下一页

导航