Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
// the GNU General Public License.

import java.util.ArrayList;
import java.util.Collection;

import java.util.List;

public class Main {
    public static List<String> toStrings(Collection<?> c) {
        List<String> result = new ArrayList<String>(c.size());
        for (Object e : c) {
            result.add(e.toString());
        }
        return result;
    }
}