Java String to List stringToList(String toList)

Here you can find the source of stringToList(String toList)

Description

string To List

License

LGPL

Declaration

public static List<String> stringToList(String toList) 

Method Source Code


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

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

public class Main {
    public static List<String> stringToList(String toList) {
        String[] st = toList.split(";");
        List<String> list = new ArrayList<>(Arrays.asList(st));
        return list;
    }/*  w  w w. j a v a2  s.c  om*/
}

Related

  1. stringToList(String str)
  2. stringToList(String str, char delimiter)
  3. stringToList(String str, String delim)
  4. stringToList(String string, String separator)
  5. stringToList(String text, String seperator)
  6. stringToList(String toList, String delimiter)
  7. stringToList(String value)
  8. stringToListOfTags(String p)
  9. strToAList(String strTokenize)