WELCOME Abdennour : Software engineer

Aug 14, 2013

Sub List /Sub Array / Sub Collection with groovy



def  big=["azeae","azeazeaz","dfsdfsdf","kjkjk","ghf"];



____________________________________________
def sub1=big[2..big.size()-1]
 
>["dfsdfsdf","kjkjk","ghf"];



___________________________________________
def sub2=big[1..big.size()-2]
 
>["azeazeaz","dfsdfsdf","kjkjk"];

1 comment: