Ya, but you dont need the overhead of creating a StringTokenizer and all sort of crap like that. Plus you can split on things other than spaces. Like you can split on the letter a, or on commas, or...
Type: Posts; User: aussiemcgr
Ya, but you dont need the overhead of creating a StringTokenizer and all sort of crap like that. Plus you can split on things other than spaces. Like you can split on the letter a, or on commas, or...
or you can use the method String.split(" "); to separate by white-spaces. It returns a String[].