Tim Holloway wrote:Sorry, Shivanny, we're not a quick help forum. No one here gets paid, so people aren't sitting around all day available to instantly answer questions.
We also are not a "do my homework" forum. We'll freely help you solve problems, but we're not going to simply write your code for you. As I said, we're not getting paid for any of this, and besides, the world is already overloaded with "developers" who cannot develop because they never took the effort to learn how.
Tim Moores wrote:Which phrases have you googled for this? What solutions have you found, and in which ways were those inadequate?
To give you hints we'd have to know what you have done already, and where you are stuck making progress.
Also, this sounds like a homework assignment you should do in order to learn something, so reusing existing solutions is probably not permissible.
Paul Clapham wrote:Yes, if there was an array with 100 elements in the ArrayList and it was necessary to extend it, then an array with 200 elements is created and the 100 elements are copied from the old array into the new array. The old array is just left to be garbage collected.
Liutauras Vilda wrote:Please post how the code looks like you have started and got stuck on.