Java List Print printList(List l)

Here you can find the source of printList(List l)

Description

print List

License

Open Source License

Declaration

public static void printList(List l) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    public static void printList(List l) {
        String print = "Size is " + l.size() + ": ";
        for (int i = 0; i < l.size(); i++) {
            print += l.get(i).toString() + ", ";
        }/* w  w w.  j  ava  2s  .co  m*/
        System.out.println(print);
    }
}

Related

  1. printItemList(String label, List itemList)
  2. printLines(List lines)
  3. printLinkedList(String prefix, LinkedList list)
  4. printList(Collection list)
  5. printList(final List list)
  6. printList(List l)
  7. printList(List results)
  8. printList(List l)
  9. printList(List l)