4 ways to split/tokenize Strings in java - HowToDoInJava
2) Using recommended String.split() This one is better and recommend than previous approach using StringTokenizer. Here tokens are returned inform of a string array which you are free to use as you wish. String[] tokens = "I,am ,Legend, , oh ,you ?".split...