Here you can find the source of splitString(String string)
public static Vector splitString(String string)
//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 }