getting exception while putting list data into the map

后端 未结 2 1420
执笔经年
执笔经年 2021-01-29 15:53

I am iterating over a list and and putting it contents over the map but the problen is that when I am returning that map I am geeting an exception could you please advise what i

2条回答
  •  面向向阳花
    2021-01-29 16:27

    Your problem is here:

    p = pairList.get(i);
    

    If your list size is 100, then allowed indexes are between 0 - 99.

提交回复
热议问题