Hi everyone in the above code My doubt is
public ArrayList(int initialCapacity)
Constructs an empty list with the specified initial capacity.
but if I invoke size then it gives 0..???
here I hav created arraylist with initial
size 2 but why it gives size 0???
2>
public ArrayList()
Constructs an empty list with an initial capacity of ten.
but here also if I invoke size then it gives 0 as output..
please tell me whats the real meaning of it???
thnks in advance
with regards