Hello, Can i print capacity of an Arraylist and add my own default capacity of an ArrayList.
Array List Capacity
Hii Mohit,
You can’t print the capacity of arraylist. But suppose you want to add 10 elements to an arraylist then after addition of two elements when you enter 3rd element java library automatically increase the capacity of arraylist.
Hey Mohit, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.