List (ArrayList)Traversal in java.
example, suppose I have one list which contains 45 element so from which i need to create  sets of lists which contains 10 element means if main list has 45 elements then it will crate 4 sets of 10 elements and and 1 for 5 elements so finally I wil get 5 lists. ok so after creating lists i need to call one function. that function will called 5 times. 

1 set
call()
2 set
call()
3 set
call()  
4 set
call()  
5 set
call()  


can anyone please provide the solution..

Thanks in advance
vinod
List (ArrayList)Traversal in java.
===

example, suppose I have one list which contains 45 element so from which i need to create  sets of lists which contains 10 element means if main list has 45 elements then it will crate 4 sets of 10 elements and and 1 for 5 elements so finally I wil get 5 lists. ok so after creating lists i need to call one function. that function will called 5 times. 

1 set
call()
2 set
call()
3 set
call()  
4 set
call()  
5 set
call()  


can anyone please provide the solution..

Thanks in advance
vinod