int newCapacity = (oldCapacity * 3)/2 + 1;

int newCapacity = (oldCapacity * 3)/2 + 1;

More to explore

Based on this image's title: “int newCapacity = (oldCapacity * 3)/2 + 1;