how to output a list in java

Solutions on MaxInterview for how to output a list in java by the best coders in the world

showing results for - "how to output a list in java"
Daniel
10 Aug 2019
1for(int i=0;i<list.size();i++){
2    System.out.println(list.get(i));
3} 
Ennio
14 Jan 2018
1System.out.println(Arrays.toString(list.toArray()));
2
Giada
07 Sep 2019
1
2for(int i = 0; i < models.size(); i++) {
3    System.out.println(models.get(i).getName());
4
Leland
01 Feb 2018
1for (Song song : list) {
2	System.out.println(song.getName());
3}
similar questions
queries leading to this page
how to output a list in java