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

Difference between arraylist and vector.

1118


What is difference between fileinputstream and filereader in java?

1058


What is data object example?

1006


What does || || mean in math?

933


What are the uses of synchronized keyword?

999


Can It is possible to synchronize the constructor of a Java Class?

1112


How many bytes is 255 characters?

976


How a variable is stored in memory?

985


How to use arraylist in java netbeans?

1036


Explain the public class modifier?

948


What is the purpose of static methods and variables?

1041


What is static method with example?

1168


What are packages in java?

1622


When should the method invokelater() be used?

1015


Is main is a keyword?

996