5
I have a list ArrayList<Integer> list = new ArrayList<Integer>();
where I have over 40,000 records.
I wonder if there’s a way to get only the first 10,000.
I know you can make one for
and move on to a new list, but that takes a lot of processing.
Would it have a simpler way? Or with Lambda?
How You Get 40k Items?
– DiegoAugusto