String separation

I've a string say 228S13I want to separate it as two substrings. i.e one before S and one after S.ie S1=228 and S2=13. How do I do that?
[158 byte] By [harinibiligiria] at [2007-11-27 8:23:59]
# 1

StringTokenizer str = new StringTokenizer("228S13","S");

while(str.hasMoreTokens()){

System.out.println("STRING"+str.nextToken());

}

or

String s[] = "228S13".split("S");

RahulSharnaa at 2007-7-12 20:12:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

What Rahul has suggested is your answer but I'd like to quote the StringTokenizer documentation:

"StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of String or the java.util.regex package instead. "

So you'd should probably use split()

nogoodatcodinga at 2007-7-12 20:12:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...