java print arraylist string code example
Example 1: print arraylist java
Arrays.toString(list.toArray())
Example 2: print a list java
for(int i = 0; i < models.size(); i++) {
System.out.println(models.get(i).getName());
Arrays.toString(list.toArray())
for(int i = 0; i < models.size(); i++) {
System.out.println(models.get(i).getName());