package SomeUtils.DynamicArray;import SomeUtils.DynamicArray.DynamicArray;public DynamicArray();
public DynamicArray(final T[] newArr);Create an instance with or without an array preset.
public void set(final int ind, final T value);Set the value for the specified index.
public T get(final int ind);Get the value for the specified index.
public T[] toArray();
public T[] getArray();Get a fixed-length copy of the underlying array.
A much more recommended way of getting the array.
public T[] getRealArray();Get the actual underlying array.
Not recommended for the length of the array is inflated.