Returns the number of elements in the bag. @return the number of elements currently in the bag
()
| 47 | * @return the number of elements currently in the bag |
| 48 | */ |
| 49 | public int size() { |
| 50 | return size; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Adds an element to the bag. |
no outgoing calls