Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import com.google.common.base.Function;
import com.google.common.collect.Lists;
import java.util.List;

public class Main {
    public static List<String> asStringList(List<Object> list) {
        List<String> newList = Lists.transform(list, new Function<Object, String>() {
            @Override
            public String apply(Object input) {
                return input.toString();
            }
        });
        return newList;
    }
}