WHAT IS STRING TOKENIZER?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
Java 
 1056  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    what is String Tokenizer?

    A StringTokenizer constructor takes a string to break into tokens and returns a StringTokenizer object for that string.

    for example:

     StringTokenizer st = new StringTokenizer("check the class");
    while (st.hasMoreTokens()) {
    System.out.println(st.nextToken());
    }

    output:
    check
    the
    class

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!