1000개 단위로 리스트를 짜르려면, sublist 와 반복문을 사용한다.
https://stackoverflow.com/questions/5824825/efficient-way-to-divide-a-list-into-lists-of-n-size
Efficient way to divide a list into lists of n size
I have an ArrayList, which I want to divide into smaller List objects of n size, and perform an operation on each. My current method of doing this is implemented with ArrayList objects in Java. Any
stackoverflow.com
'☕️Java > Java Basic' 카테고리의 다른 글
Java의 날짜 API 변천사. (0) | 2022.12.12 |
---|---|
List를 1000건씩 삽입하는 방법. (0) | 2021.08.23 |
new BigDecimal과 BigDecimal.valueOf의 차이. (0) | 2021.01.13 |
BigDecimal의 toString 들. (0) | 2021.01.13 |
BigDecimal - stripTrailingZeros() (0) | 2021.01.13 |