Programming, Java, Lists, Data Structures.
int newCapacity = oldCapacity + (oldCapacity >> 1); //>>(Right shift operator) by 1 divides the oldCapacity by 2, hence //the value of newCapacity is set to 15 As we keep on adding new elements the size of the array will keep on increasing until we finally reach 2147483647, which is basically