Q: How do I get the number of items contained in a Java ArrayList?
A: Look at this link it will help you a lot http://www.url.com/to-get-the-number-of-items-in-an-arraylist-use-its-size-method.html
This is an archetypical link-only answer, but should it be deleted? The correct answer is right there in the URL slug text!
I realize this is an edge case, but I saw something like this and couldn't decide what the proper action should be. I can't find it anymore — probably deleted. So I made up the above contrived example.
Maybe just "improve formatting"?
A: To get the number of items in an
ArrayList
, use itssize
method.