Java Comma Separated List commaStringToList(String inputString)

Here you can find the source of commaStringToList(String inputString)

Description

comma String To List

License

Apache License

Declaration

public static List<String> commaStringToList(String inputString) 

Method Source Code

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

import java.util.Arrays;

import java.util.List;

public class Main {
    public static List<String> commaStringToList(String inputString) {
        return Arrays.asList(inputString.split("\\s*,\\s*"));
    }/*  w  ww. j a  v  a  2 s .  c  om*/
}

Related

  1. commaSeparatedString(List strings)
  2. commaSeparatedStringToList(String csvListStr)
  3. commaSeparatedToList(String str)
  4. commaSeperatedStringToList(String strValue)
  5. commaSepLineToList(String commSepLine)
  6. convertCommaDelimitedStringToList(String s)
  7. ConvertDiscussionGroupListToCommaString( List list)
  8. convertToStringList(String valuesCommaSeparated)
  9. extractCommaItems(List list, String tags)