Java adding elements to arraylist and good practices -
i dealing adding objects lists , have faced problems while assigning new values temporary
object. i've come myself , found here answer, can't add comments , question is: practice create new instance of class each time want add element in loop? memory usage?
when add objects list, these new objects, or pulling existing ones other list or data structure? if it's former (they new), must construct them add them (new instances).
Comments
Post a Comment