Java String from List stringFromLines(List lines)

Here you can find the source of stringFromLines(List lines)

Description

string From Lines

License

Open Source License

Declaration

public static String stringFromLines(List<String> lines) 

Method Source Code

//package com.java2s;
/*//from w w w . j  a  v  a2  s .  co m
(C) 2007 Stefan Reich (jazz@drjava.de)
This source file is part of Project Prophecy.
For up-to-date information, see http://www.drjava.de/prophecy
    
This source file is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation, version 2.1.
*/

import java.util.*;

public class Main {
    public static String stringFromLines(List<String> lines) {
        StringBuffer buf = new StringBuffer();
        for (String line : lines) {
            buf.append(line).append('\n');
        }
        return buf.toString();
    }
}

Related

  1. stringExistInList(String value, List searchList)
  2. stringFromList(List list)
  3. stringfyList(List ls)
  4. stringify(List entries)
  5. stringifyList(List items)