As the title, how can I resize array in java, without importing any library, including ArrayList
, Arrays.copyOf
...etc.
Also, I have to resize again and again in my program, with the unknown input data.( i.e. I have a small array, but when the data increasing, how can I resize it?)