Java List to String toString(List c)

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

Description

to String

License

GNU General Public License

Declaration

private static String toString(List<Character> c) 

Method Source Code

//package com.java2s;
/******************************************************************
 *   License: GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html   *
 *   Copyright (c) 2016 {slash.bin /bin} http://slashb.in         *
 ******************************************************************/

import java.util.List;

public class Main {
    private static String toString(List<Character> c) {
        if (c == null)
            return null;

        final StringBuffer s = new StringBuffer(c.size());
        for (int i = 0; i < c.size(); i++) {
            s.append(c.get(i));//from  www  . j  ava2 s.  c om
        }
        return s.toString();
    }
}

Related

  1. toString(List list)
  2. toString(List list)
  3. toString(List list, char sep)
  4. toString(List list, String separator)
  5. toString(List objects)
  6. toString(List list)
  7. toString(List> classes)
  8. toString(List> values)
  9. toString(List listOriginal)

    HOME | Copyright © www.java2s.com 2016