I am following emaze-dysfunctional to grouping from a arraylist. In follwing code I can group from the map. Console shows grouping elements. I need to add them in a arraylist. 

For ex. repay liat is having 120 elements, but grouping map contains three groups as 40 elements each.

```
        List<LoanRepaymentSchedule> repay = loanService
                .getLoanRepaymentScheduleById(groupLoan.getLoanId());

        Map<Integer, List<LoanRepaymentSchedule>> map = Groups.groupBy(
                repay, new Pluck<Integer, LoanRepaymentSchedule>(
                        LoanRepaymentSchedule.class, "memberCount"));
        System.out.println ("map.keySet().size() "+map.keySet().iterator());

        for (Integer key : map.keySet()) {
            List<LoanRepaymentSchedule> pro =  map.get(key);
            System.out.println("Element-******* "+pro.size());          
            System.out.println("Element-******* "+pro.get(0));          

        }

```

How to save that 3 grouping elements in a separate arraylist like list1, list2, list3.

repay list as follows,

```
    id 1 val 5
    id 1 val 6
    id 1 val 1
    id 1 val 5
    id 1 val 6
    id 1 val 1

```

I need list 1 as 

```
id 1 val 5
id 1 val 5

```

list 2 as 

```
id 1 val 6
id 1 val 6

```

list 1 as 

```
id 3 val 1
id 1 val 1

```