Tag: java string split whitespace

String split() Java

June 7, 2013 · 4 min read
Java designers noticed the importance of split() method in a programming language (which already exists in other languages like JavaScript etc.) and introduced in Java from **JDK 1.4**. The same splitting of a string into independent words or tokens is done in earlier versions using [StringTokenizer](http://way2java.com/java-util/class-stringtokenizer/). Usage of split() in place of [StringTokenizer](http://way2java.com/java-util/class-stringtokenizer/) is very easy.