Java CSV from getStringList(String csv)

Here you can find the source of getStringList(String csv)

Description

get String List

License

Apache License

Declaration

static List<String> getStringList(String csv) 

Method Source Code


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

import java.util.ArrayList;
import java.util.List;

public class Main {
    static List<String> getStringList(String csv) {
        String[] eqArr = csv.split(",");
        List<String> subStringList = new ArrayList<String>();
        for (int i = 0; i < eqArr.length; i++) {
            String eqString = eqArr[i].trim();
            subStringList.add(eqString);
        }/* w w w  . j a v  a 2 s.c om*/
        return subStringList;
    }
}

Related

  1. getListFromCSV(String myCsv)
  2. getListFromCSV(String myCsv)
  3. getListFromCSVString(String csvString)
  4. getPrintableCSVs(List list)
  5. getRightFirstRow(List csvRows)
  6. getStringListFromCsv(String tags)
  7. getVendorIdsAndNames(String vendorCsv, List vendorNames, List vendorIDs)
  8. listToCsv(List list)
  9. listToCsv(List listOfStrings, char separator)