Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Explain Stream Tokenizer?

Answer Posted / srinu

Stream Tokenizer from java.util package this class
implements Enumeration interface.This class break the string
into tokens with take parameter as delimeter

EX:-
import java.util.*;
public class Strtok
{

public static void main(String [] args)
{

String Demo = "This is a string that we want to tokenize";
StringTokenizer Tok = new StringTokenizer(Demo);
int n=0;
while (Tok.hasMoreElements())
System.out.println("" + ++n +": "+Tok.nextElement());
}
}

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to open and edit XML file in Weblogic???

2007


Is java a super set of javascript?

1148


What are the differences between c++ and java?

1181


What is the difference between a scrollbar and a scrollpane?

1110


What do you mean by an interface in java?

1073


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

1037


Difference between object and reference?

1232


What does the “static” keyword mean?

1165


Explain about transient variables in java?

1146


List implementations of list interface?

1066


What is the difference between replace and replace all?

1066


Are primitives objects?

1106


What is the function of compareto in java?

1113


What is append in java?

1233


Explain what access modifiers can be used for variables?

1107