Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

import java.util.List;

public class Main {
    /**
     * Prints the elements of a string list without leading and ending brackets.
     * 
     * @param listToPrint
     *            the list to print.
     * @return a string as a list of elements without leading and ending
     *         brackets.
     */
    public static String printStringList(List<String> listToPrint) {
        return listToPrint.toString().replace("[", "").replace("]", "").trim();
    }
}