https://examples.javacodegeeks.com/java-take-n-start-elements-of-a-list-to-an-array/
Java – Take n Start Elements of a list to an array