Answers for "java simple way to print list<User>"

0

print list in java

for(int i=0;i<list.size();i++){
    System.out.println(list.get(i));
}
Posted by: Guest on September-16-2020
1

print list in java 8

list.forEach(System.out::println);
Posted by: Guest on May-18-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language