Here you can find the source of tokenizeToStringArray(String str, String seperators)
private static String[] tokenizeToStringArray(String str, String seperators)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { private Properties p; private static String[] tokenizeToStringArray(String str, String seperators) { StringTokenizer tokenlizer = new StringTokenizer(str, seperators); List result = new ArrayList(); while (tokenlizer.hasMoreElements()) { Object s = tokenlizer.nextElement(); result.add(s);//from w ww .j a v a 2 s .c om } return (String[]) result.toArray(new String[result.size()]); } public int size() { return p.size(); } }