2 package org
.de
.metux
.util
;
8 /* a little workaround against missing regex in current libgcj */
9 public static String
[] split(String str
)
14 StringTokenizer tok
= new StringTokenizer(str
);
15 String
[] list
= new String
[tok
.countTokens()];
17 for (int x
=0; tok
.hasMoreTokens(); x
++)
18 list
[x
] = tok
.nextToken();
23 public static String
[] split(String str
, String delimiter
)
28 StringTokenizer tok
= new StringTokenizer(str
,delimiter
);
29 String
[] list
= new String
[tok
.countTokens()];
31 for (int x
=0; tok
.hasMoreTokens(); x
++)
32 list
[x
] = tok
.nextToken();