What is the fastest way to get the first n elements of a list stored in an array?
Considering this as the scenario:
int n = 10; ArrayList
Use: Arrays.copyOf(yourArray,n);