Java List Create createStringList(String spaceDelimitedString)

Here you can find the source of createStringList(String spaceDelimitedString)

Description

create String List

License

Open Source License

Declaration

private static List<String> createStringList(String spaceDelimitedString) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2007, 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors://ww  w. j ava  2 s .co  m
 * IBM Corporation - initial API and implementation
 * yyyymmdd bug      Email and other contact information
 * -------- -------- -----------------------------------------------------------
 * 20071030   196997 pmoogk@ca.ibm.com - Peter Moogk
 * 20080325   222095 pmoogk@ca.ibm.com - Peter Moogk
 * 20080626   238635 pmoogk@ca.ibm.com - Peter Moogk, Locally added service policy nodes meta data coliding with state data.
 *******************************************************************************/

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

public class Main {
    private static List<String> createStringList(String spaceDelimitedString) {
        String[] splitValues = spaceDelimitedString.split(" "); //$NON-NLS-1$

        return Arrays.asList(splitValues);
    }
}

Related

  1. createStringDummyList()
  2. createStringFromIntArray( List listOfNumbers)
  3. createStringFromIntegerList(List lst)
  4. CreateStringList(Collection values)
  5. createStringList(String csvString)
  6. createStringListFromStringArr(String[] stringArr)
  7. createSubList(Collection source, Class type)
  8. createSublist(final T[] elements, final Class listImplementation)
  9. createSymbolNameString_From_Parts(List descTagName_Parts)