StringTokenizer str = new StringTokenizer("228S13","S");
while(str.hasMoreTokens()){
System.out.println("STRING"+str.nextToken());
}
or
String s[] = "228S13".split("S");
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()