I have a list ArrayList<Integer> list = new ArrayList<Integer>();
where I have over 40,000 records.
I wonder if you have a way to get only the top 10,000.
I know you have to for
and move to a new list, but this requires a lot of processing.
Would it have a simpler way? Or with Lambda?