Java String to List stringToArrayList(String idString)

Here you can find the source of stringToArrayList(String idString)

Description

string To Array List

License

Open Source License

Declaration

protected static List<String> stringToArrayList(String idString) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Arrays;
import java.util.List;

public class Main {
    protected static List<String> stringToArrayList(String idString) {
        return Arrays.asList(idString.trim().split("\\s*" + "," + "\\s*"));
    }//w  w  w.  ja v  a  2  s  .c  o  m
}

Related

  1. convertToList(String str)
  2. convertToList(String string, String delim)
  3. convertToList(String vars)
  4. convertToList(String[] array)
  5. stringsToList(final String[] src)
  6. stringToBooleanList(final String str, final boolean[] listData)
  7. stringToIntegerList(String input)
  8. stringToItems(List fontsList, boolean useSeparator)
  9. stringToList(final String string)