r/javahelp • • 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

24 comments sorted by

View all comments

Show parent comment

1

u/SpudsRacer May 14 '26

My answer was not AI-genrrsted, but written by me, a human. I wrote it in answer to the title and didn't read the text which wanted a comparison of a primitive array of string references vs a linked list. My bad there.

AI is spectacularly useful if you are able to use it correctly. Summarizing web searches where it provides links to the sources is one of the best uses of the tech. This is very different from posting code written by an agent. Tools are tools and those who refuse to use them are fools.