String manipulation is one of the easiest process in Java, yet confusing sometimes. There are many build-in methods available with String class itself. Manipulating words in a String can be done by using java.text.BreakIterator. BreakIterator can be used to find the location of boundaries in text. The below example shows how to break a String into words.

String manipulation is one of the easiest process in Java, yet confusing sometimes. There are many build-in methods available with String class itself. Manipulating words in a String can be done by using java.text.BreakIterator. BreakIterator can be used to find the location of boundaries in text. The below example shows how to break a String into words.