Java String Split splitString(String string)

Here you can find the source of splitString(String string)

Description

split String

License

Open Source License

Declaration

public static Vector splitString(String string) 

Method Source Code

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

import java.util.*;

public class Main {
    public static Vector splitString(String string) {
        Vector vr = new Vector();
        StringTokenizer stok = new StringTokenizer(string, " ");
        while (stok.hasMoreTokens()) {
            vr.addElement(stok.nextToken());
        } // end of while ()

        return vr;

    }//from   w w  w.j a  va 2 s .c  o  m
}

Related

  1. splitString(String hexString, int partSize)
  2. splitString(String s)
  3. splitString(String s)
  4. splitString(String s)
  5. splitString(String src, String target)
  6. splitString(String string, int limit)
  7. splitStringBySeperator(final String str, final String seperator)
  8. splitStrings(String start, String end, int numSplitStrings, boolean oddLevel, List splits)
  9. splitStringToList(String pstrString, String pstrSep)