Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Main {
    public static List<String> getValuesNames(List source) {
        Iterator it = source.iterator();
        List clone = new ArrayList();
        while (it.hasNext()) {
            String name = it.next().toString();
            clone.add(name);
        }
        return clone;
    }
}