@Test public void test() { String[] array = StringTokenizerUtils.split("a|b,c d", "|, "); assertEquals(array[0],"a"); assertEquals(array[1],"b"); assertEquals(array[2],"c"); assertEquals(array[3],"d"); }
@SuppressWarnings("all") public static String[] split(String str,String seperators) { StringTokenizer tokenlizer = new StringTokenizer(str,seperators); List result = new ArrayList(); while(tokenlizer.hasMoreElements()) { Object s = tokenlizer.nextElement(); result.add(s); } return (String[])result.toArray(new String[result.size()]); }
StringTokenizerUtils { @SuppressWarnings("all") public static String[] split(String str,String seperators) { StringTokenizer tokenlizer = new StringTokenizer(str,seperators); List result = new ArrayList(); while(tokenlizer.hasMoreElements()) { Object s = tokenlizer.nextElement(); result.add(s); } return (String[])result.toArray(new String[result.size()]); } }
StringTokenizerUtils { @SuppressWarnings("all") public static String[] split(String str,String seperators) { StringTokenizer tokenlizer = new StringTokenizer(str,seperators); List result = new ArrayList(); while(tokenlizer.hasMoreElements()) { Object s = tokenlizer.nextElement(); result.add(s); } return (String[])result.toArray(new String[result.size()]); }  }
StringTokenizerUtils { @SuppressWarnings("all") public static String[] split(String str,String seperators) { StringTokenizer tokenlizer = new StringTokenizer(str,seperators); List result = new ArrayList(); while(tokenlizer.hasMoreElements()) { Object s = tokenlizer.nextElement(); result.add(s); } return (String[])result.toArray(new String[result.size()]); }  @SuppressWarnings("all") static String[] split(String str,String seperators); }
StringTokenizerUtils { @SuppressWarnings("all") public static String[] split(String str,String seperators) { StringTokenizer tokenlizer = new StringTokenizer(str,seperators); List result = new ArrayList(); while(tokenlizer.hasMoreElements()) { Object s = tokenlizer.nextElement(); result.add(s); } return (String[])result.toArray(new String[result.size()]); }  @SuppressWarnings("all") static String[] split(String str,String seperators);  }