Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Tokenizing Delimiters

When tokenizing a string, the delimiters are ignored by default.

Tutorial Details:

Purpose
When tokenizing a string, the delimiters are ignored by default. However, it may be useful to get them returned as tokens too. Each delimiter will be returned as a one-character string.
Constructor
Specify that you want the delimiters returned by specifying true in the third parameter of the constructor.
StringTokenizer st = new StringTokenizer(s, d, true);
Creates a StringTokenizer for the String s using delimiters from the String d


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/data/strings/55stringTokenizer/20stringtokdelim.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Tokenizing Delimiters

View Tutorial:
Tokenizing Delimiters

Related Tutorials:

Mapping XML to Java, Part 1 - JavaWorld August 2000
Mapping XML to Java, Part 1 - JavaWorld August 2000
 
Servlet 2.3: New features exposed - JavaWorld January 2001
Servlet 2.3: New features exposed - JavaWorld January 2001
 
How to build an interpreter in Java, Part 1: The BASICs (JavaWorld / May 1997 / by Chuck McManis)
How to build an interpreter in Java, Part 1: The BASICs (JavaWorld / May 1997 / by Chuck McManis)
 
JSP FUNDAMENTALS
JSP FUNDAMENTALS JSP FUNDAMENTALS By: Hrishikesh Deshpande Introduction : JSP termed as Java Server Pages is a technology introduced by Sun Microsystems Inc. to develop the web application in more efficient way than Servlets. It has got many
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.