20
MaccaMc
8y

Life is like an ArrayList, starts at 0 but hasn't got a defined size.

Comments
  • 4
    IndexOutOfBoundsException

    Reference to element 0. ArrayList size is 0.
  • 0
    I never thought about that.
    But that definitely makes sense🤔
  • 1
    This is deep
  • 0
    Sad part is that if you think about implementation this might not actually be true since an ArrayList might be preallocated to avoid reallocation on add. Life is more like a tree, every branch leads to different paths.
Add Comment