SyntaxFix
Write A Post
Hire A Developer
Questions
Printing a specific element is
list.get(INDEX)
I think the best way to print the whole list in one go and this will also avoid putting a loop
Arrays.toString(list.toArray())