Java List Print println(List text)

Here you can find the source of println(List text)

Description

println

License

Open Source License

Declaration

public static void println(List<String> text) 

Method Source Code

//package com.java2s;
/*//from   ww  w . j  a  va2  s.  com
 * This file is part of the Gwt-Generator project and was written by Henri Darmet for Objet Direct
 * <http://wwww.objetdirect.com>
 * 
 * Copyright ? 2009 Objet Direct
 * 
 * Gwt-Generator 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, either version 3 of the License, or (at your option) any later version.
 * 
 * Gwt-Generator is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License along with Gwt-Generator. If not, see <http://www.gnu.org/licenses/>.
 */

import java.util.List;

public class Main {
    public static void println(List<String> text) {
        System.out.println(
                "---------------------------------------------------------------------------------------\n");
        for (String line : text) {
            System.out.println(line);
        }
    }

    public static void println(String[] text) {
        System.out.println(
                "---------------------------------------------------------------------------------------\n");
        for (String line : text) {
            System.out.println(line);
        }
    }
}

Related

  1. printList(List list)
  2. printListPair(List list)
  3. printListStrings(List list, String listDescription)
  4. printListV(List l)
  5. printListWithDelimiter(Collection list, String delimiter)
  6. printlnList(List list)
  7. printMap(HashMap> listHashMap)
  8. printNonEmptyList(List list)
  9. printObjectList(List list)

    HOME | Copyright © www.java2s.com 2016