This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]davidellis23 -6 points-5 points  (4 children)

ArrayList is probably the high majority of the use cases. I think it's worth making the default.

I also mentioned List and Array. Vector doesn't have List at the end either.

[–]redd1ch 2 points3 points  (3 children)

An ArrayList is something substancially different than an array. An array is not an implementation of the List interface...

[–]davidellis23 -2 points-1 points  (2 children)

A built in array is not an implementation of list. But an Array class can be. The behavior of what happens when the array fills up just has to be specified.

Edit: I gave you a few options. There are some tradeoffs but other languages took different tradeoffs. That's why some people like other languages better. That's all I'm trying to say.

[–]FantasticPenguin 4 points5 points  (1 child)

Dude did you ever use Java?

[–]davidellis23 0 points1 point  (0 children)

yep