It is odd, it creates an object which is never used to prompt the method call to instantiate one just like it, only the right size. You can also write:
return validPlayers.toArray(new...