In the JDK 1.7 into the ArrayList.java the method ensureCapacity increments the array capacity using the following expression: int newCapacity = oldCapaci
ensureCapacity
int newCapacity = oldCapaci
In Java 6 newCapacity is calculated as => int newCapacity = (oldCapacity * 3)/2 + 1;
In Java 7 newCapacity is calculated as => int newCapacity = oldCapacity + (oldCapacity >> 1)