ArrayList
The Problem with Arrays. A Java array has a fixed length set when you create it. Once you write int[] a = new int[5];, the array can hold exactly five elements forever. If you need a sixth, you must allocate a brand new, larger array and copy every element acr
8 lessons, each with runnable code in the browser.