When I perform
String test=\"23x34 \"; String[] array=test.split(\"x\"); //splitting using simple letter
I got two items in array as 23 and
Java's String class' split method also accepts regex.
To keep things short, this should help you: http://www.coderanch.com/t/480781/java/java/String-split