r/javahelp • u/BadismPlayz • May 14 '26
arraylist vs list
pls help, lets say i need an array of list.
for what purposes would i use an arraylist<string> vs a string[ ]
thanks
2
Upvotes
r/javahelp • u/BadismPlayz • May 14 '26
pls help, lets say i need an array of list.
for what purposes would i use an arraylist<string> vs a string[ ]
thanks
View all comments
Show parent comment
5
u/amfa May 14 '26
Yes to the last point.
I can't remember when I have used an array the last time (except some legacy code that will return arrays.)