In this article, we will see different approaches to split a String in Java. – Using String split() method – Using StringTokenizer – Algorithm to split a String in Java Splitting a string using the split() method Here is the syntax of the split() method : public String[] split(String regex, [int […]