Java String to List strToList(String value)

Here you can find the source of strToList(String value)

Description

str To List

License

Apache License

Declaration

public static List<Object> strToList(String value) 

Method Source Code

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

import java.util.ArrayList;

import java.util.List;

public class Main {
    public static List<Object> strToList(String value) {
        List<Object> result = new ArrayList<Object>();
        String[] strs = value.split(",");
        for (String s : strs) {
            result.add(s);//from  w  w  w .  jav a2s . c  om
        }
        return result;
    }
}

Related

  1. stringToListOfTags(String p)
  2. strToAList(String strTokenize)
  3. strToList(String str, String regex)
  4. strToList(String str, String separator)
  5. strToList(String str, String split)
  6. toList(String list)
  7. toList(String s)
  8. toList(String s, String delim)
  9. toList(String s, String delimiter)