Java List to String toString(List l)

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

Description

to String

License

Open Source License

Declaration

public static String toString(List l) 

Method Source Code


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

import java.util.*;

public class Main {
    public static String toString(List l) {
        StringBuffer buf = new StringBuffer();
        for (int i = 0; i < l.size() - 1; i++) {
            buf.append(l.get(i).toString());
            buf.append("\t");
        }// w w  w .  j a v  a 2  s. co m
        buf.append(l.get(l.size() - 1).toString());
        return buf.toString();
    }
}

Related

  1. toString(final List inMessages)
  2. toString(final List input)
  3. toString(final List list, char delimiter)
  4. toString(final Object[] list)
  5. toString(List arguments)
  6. toString(List list)
  7. toString(List list)
  8. toString(List objects)
  9. toString(List col)