Java Basic Problems

Java break string in into individual words: How to split a string according to space,comma, colon and more between them and then save it in an array of string.


split string into words and string manipulationToday I am sharing you another basic but important technique about string manipulation. While coding in java, sometimes we need to split or break a string into individual word according to space, commas, colon or any other character between them and then save that individual words into an array of string.

The coding is simple and you can test it according to your need. Just copy the code below and run it in your own machine. Please give comments if this solution is helpful for you.

Continue reading “Java break string in into individual words: How to split a string according to space,comma, colon and more between them and then save it in an array of string.”