Here you can find the source of getValuesFromCSVString(String csvString)
public static List<String> getValuesFromCSVString(String csvString)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { public static List<String> getValuesFromCSVString(String csvString) { List<String> values = new ArrayList<String>(); String[] splitString = csvString.split(","); for (String value : splitString) { values.add(value.trim());/*from w w w . j a v a2 s.c o m*/ } return values; } }