File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes difference between using tokenizing, split Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "difference between using tokenizing, split " Watch "difference between using tokenizing, split " New topic
Author

difference between using tokenizing, split

avishek bose
Greenhorn

Joined: Oct 12, 2011
Posts: 15
hi ,

Ca anyone tell me the difference between the tokenzer and split() applied to string and when to use them

regards
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7052
    
  16

avishek bose wrote:Ca anyone tell me the difference between the tokenzer and split() applied to string and when to use them

This from the StringTokenizer class API documentation:
"StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of String or the java.util.regex package instead."

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between using tokenizing, split
 
Similar Threads
Run as AWT or SWT Application Eclipse Question
difference RAD & WSAD
JATO Vs JDOM
Difference between wsad5.1.2 & Rad
Difference between StringTokenizer and split