I would like to know how to split up a large string into a series of smaller strings or words. For example:
I want to walk my dog.
You can use split(" ") method of the String class and can get each word as code given below:
split(" ")
String
String s = "I want to walk my dog"; String []strArray=s.split(" "); for(int i=0; i