Its known that Java ArrayList is implemented using arrays and initializes with capacity of 10 and increases its size by 50% . How to get the current ArrayList capacity not t
Default capacity of ArrayList is 10.once the max size is reached,new capacity will be:
ArrayList
new capacity=(currentcapacity*3/2)+1.