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.
Use split() method
split()
Eg:
String s = "I want to walk my dog"; String[] arr = s.split(" "); for ( String ss : arr) { System.out.println(ss); }