groovey list集合使用
//创建 调用 修改 def lst = [] //创建ArrayList def lst1 = [] as LinkedList //创建LinkList def lst2 = [1,2,3,2,3,2] println(lst2[1]) println(lst2[-1]) // -1倒过来取值 def lst3 = lst2[0..2] lst3[2] = 100 print