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 java.util.ArrayList;
import java.util.List;

public class Main {

    public static List<String> stringsToList(String[] arrayOfString) {
        if ((arrayOfString == null) || (arrayOfString.length == 0))
            return null;
        ArrayList<String> list = new ArrayList<String>();
        for (int i = 0; i < arrayOfString.length; i++)
            list.add(arrayOfString[i]);
        return list;
    }
}