You get it right, newCapacity is 50% more than oldCapacity
In Java 6, newCapacity is calculated as
int newCapacity = (oldCapacity * 3)/2 + 1;
This is the beauty of an open source language such as Java, you can see the implementation - if it does not meet your requirements, you can implement your own.
source share