I have a small question. I want to split the text at the space.
eg:
\"Hello World \"
should be
\"Hel
You can use String.split()
String yourString = "Hello World"; String[] result = yourString.split(" "); result[0]; //"Hello" result[1]; //"World"