Returns a count of how many objects this Collection contains. In this class this method is declared abstract and has to be implemented by concrete Collection implementations. @return how many objects this Collection contains, or Integer.MAX_VALUE if there
()
| 335 | * {@code Collection}. |
| 336 | */ |
| 337 | public abstract int size(); |
| 338 | |
| 339 | public Object[] toArray() { |
| 340 | int size = size(), index = 0; |