SyntaxFix
Write A Post
Hire A Developer
Questions
Instead of using loops and counting each element or using and third party library we can simply typecast the iterable in ArrayList and get its size.
((ArrayList) iterable).size();