Java String Split by Word splitOne(String wordString)

Here you can find the source of splitOne(String wordString)

Description

split One

License

Open Source License

Declaration

private static List<String> splitOne(String wordString) 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    private static List<String> splitOne(String wordString) {
        return Arrays.asList(wordString.split("#"));
    }/*from w ww. j av a 2s .  c  o m*/

    private static List<List<String>> split(String wordListsString) {
        List<List<String>> result = new ArrayList<List<String>>();
        for (String wordString : wordListsString.split(" ")) {
            result.add(splitOne(wordString));
        }
        return result;
    }
}

Related

  1. split(String words, String character)
  2. splitIdentifierToWords(String str)
  3. splitIntoWords(String s)
  4. splitKeyWords(String sql)
  5. splitUnit(String word)
  6. splitWord(List words, int listIndex)
  7. splitWords(String name)
  8. splitwords(String s)