+ 11

Null in arraylists>object data

I want to know how arraylists work behind the scene in Java?why I get few nulls https://www.sololearn.com/post/78634/?ref=app

26th Mar 2019, 1:38 PM
Saksham Jain
Saksham Jain - avatar
2 Answers
+ 6
Serena Yvonne but see my post there are 21 elements and 15 are filled so after I cross 10 if new capacity becomes 10*3/2+1 means 16 and I have not crossed it but still 21 elements why?
28th Mar 2019, 6:27 AM
Saksham Jain
Saksham Jain - avatar
+ 6
Serena Yvonne now it's okay since I was also confused why it will be *3/2 +1 and now you have edited it to remove 1 đŸ™‚đŸ€”
28th Mar 2019, 7:35 AM
Saksham Jain
Saksham Jain - avatar