I tried to search online to solve this question but I didn\'t found anything.
I wrote the following abstract code to explain what I\'m asking:
String
Try this
String text = "how are you?"; String array[] = text.split(" ");
Or you can use it below
List list= new ArrayList(); int index = 0; while (index