Java collections framework: Difference between revisions

Content deleted Content added
m Reverted edits by 117.222.137.230 (talk) (HG) (3.4.12)
ArrayList class: clarify dynamic arraylist vs static array
Tags: Reverted Mobile edit Mobile web edit
Line 111:
 
=====ArrayList class=====
The '''{{Javadoc|module=java.base|package=java.util|class=ArrayList|monotype=y}}''' class implements the <code>List</code> as an array. Whenever functions specific to a <code>List</code> are required, the class moves the elements around within the array in order to do it. Unlike arrays, which are static and have a fixed size, ArrayLists are dynamic, and can grow or shrink as needed<ref>{{Cite web|url=https://ioflood.com/blog/arraylist-java/#Understanding_Java_Collections_Framework_and_ArrayList|title=Java Arraylist|website=ioflood.com|access-date=2023-12-09}}</ref>.
 
=====LinkedList class=====