SyntaxFix
Write A Post
Hire A Developer
Questions
You could also do a for loop as you would for an array but instead of array[i] you would use list.get(i)
for (int i = 0; i < list.size(); i++) { System.out.println(list.get(i)); }