I read the previous post .toArray(new MyClass[0]) or .toArray(new MyClass[myList.size()])? and want to know if this is still valid with >jdk9:
version 1