You can do:
new ArrayList<T>(10000);
which pre-allocates an array with the specified size (for example, 10000), so it does not need to redistribute when adding elements. In addition, you can not do anything. In addition, it does not matter for ArrayList which link it stores, so the information cannot help you in optimization.
source share